mlt_properties_set_double( test_properties, "consumer_scale", mlt_properties_get_double( properties, "consumer_scale" ) );
mlt_properties_set( test_properties, "rescale.interp", "nearest" );
mlt_frame_get_image( test_frame, buffer, format, width, height, writable );
- mlt_properties_inherit( properties, test_properties );
mlt_properties_set_data( properties, "test_card_frame", test_frame, 0, ( mlt_destructor )mlt_frame_close, NULL );
mlt_properties_set_data( properties, "image", *buffer, *width * *height * 2, NULL, NULL );
mlt_properties_set_int( properties, "width", *width );
mlt_properties_set_double( properties, "fps", 30000.0 / 1001.0 );
mlt_properties_set_double( properties, "_speed", 1.0 );
mlt_properties_set_position( properties, "in", 0 );
- mlt_properties_set_position( properties, "out", 1799999 );
- mlt_properties_set_position( properties, "length", 1800000 );
+ mlt_properties_set_position( properties, "out", 14999 );
+ mlt_properties_set_position( properties, "length", 15000 );
mlt_properties_set_double( properties, "aspect_ratio", 4.0 / 3.0 );
mlt_properties_set( properties, "eof", "pause" );
mlt_properties_set( properties, "resource", "<producer>" );
{
register int i, j;
register int half = *width >> 1;
- uint8_t *Y = ( ( AVPicture * )&frame )->data[ 0 ];
- uint8_t *U = ( ( AVPicture * )&frame )->data[ 1 ];
- uint8_t *V = ( ( AVPicture * )&frame )->data[ 2 ];
+ register uint8_t *Y = ( ( AVPicture * )&frame )->data[ 0 ];
+ register uint8_t *U = ( ( AVPicture * )&frame )->data[ 1 ];
+ register uint8_t *V = ( ( AVPicture * )&frame )->data[ 2 ];
register uint8_t *d = *buffer;
register uint8_t *y, *u, *v;
mlt_properties_set_double( properties, "discrepancy", discrepancy );
}
- if ( discrepancy * current_pts <= ( real_timecode - 0.02 ) )
+ if ( !ignore && discrepancy * current_pts <= ( real_timecode - 0.02 ) )
ignore = 1;
}
if ( result == NULL )
result = mlt_factory_producer( "avformat", file );
- // 4th line fallbacks
- if ( result == NULL )
- result = mlt_factory_producer( "ffmpeg", file );
-
return result;
}