X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fmodules%2Favformat%2Fconsumer_avformat.c;h=e5a4dddfef98ed2d9a4521d05bbdfaa28caa6435;hb=2a2669b620e293e8963205c86606618789951eed;hp=f5a7cc2b902d829b6c5e0f162375d036b13b041f;hpb=f00476101550ec7d8e863f6516aa83bc1b524570;p=melted diff --git a/src/modules/avformat/consumer_avformat.c b/src/modules/avformat/consumer_avformat.c index f5a7cc2..e5a4ddd 100644 --- a/src/modules/avformat/consumer_avformat.c +++ b/src/modules/avformat/consumer_avformat.c @@ -778,6 +778,9 @@ static void *consumer_thread( void *arg ) mlt_properties_set_data( properties, "sample_fifo", fifo, 0, ( mlt_destructor )sample_fifo_close, NULL ); } + if ( mlt_properties_get_double( frame_properties, "_speed" ) != 1.0 ) + memset( pcm, 0, samples * channels * 2 ); + // Append the samples sample_fifo_append( fifo, pcm, samples * channels ); total_time += ( samples * 1000000 ) / frequency; @@ -928,7 +931,7 @@ static void *consumer_thread( void *arg ) } } - if ( real_time_output && frames % 25 == 0 ) + if ( real_time_output && frames % 12 == 0 ) { long passed = time_difference( &ante ); if ( fifo != NULL )