double fps = mlt_properties_get_double( this_properties, "fps" );
// Create the encoder
- encoder = dv_encoder_new( fps != 25, 0, 0 );
+ encoder = dv_encoder_new( 0, 0, 0 );
// Encoder settings
- encoder->isPAL = fps = 25;
+ encoder->isPAL = fps == 25;
encoder->is16x9 = 0;
encoder->vlc_encode_passes = 1;
encoder->static_qno = 0;
// This will hold the size of the dv frame
int size = 0;
+ // determine if this a test card
+ int is_test = mlt_frame_is_test_card( frame );
+
// If we get an encoder, then encode the image
if ( encoder != NULL )
{
}
// Process the frame
- if ( size != 0 )
+ if ( size != 0 && !( mlt_properties_get_int( this_properties, "was_test_card" ) && is_test ) )
{
// Encode the image
dv_encode_full_frame( encoder, &image, e_dv_color_yuv, dv_frame );
+
+ // Note test card status
+ mlt_properties_set_int( this_properties, "was_test_card", is_test );
}
}