X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=mlt%2Fsrc%2Fmodules%2Fffmpeg%2Fproducer_ffmpeg.c;h=4506ff879ade6a0b4f6bf2408643258386a83620;hb=5c7accb28f7fe743270523b85e434fedafd8b053;hp=de829cdb356dfae64916b061bbd71829e5faf9e4;hpb=ba935b798fa57c7541cfa274021c330d1cdf7874;p=melted diff --git a/mlt/src/modules/ffmpeg/producer_ffmpeg.c b/mlt/src/modules/ffmpeg/producer_ffmpeg.c index de829cd..4506ff8 100644 --- a/mlt/src/modules/ffmpeg/producer_ffmpeg.c +++ b/mlt/src/modules/ffmpeg/producer_ffmpeg.c @@ -370,7 +370,10 @@ static int producer_get_frame( mlt_producer producer, mlt_frame_ptr frame, int i mlt_properties_set_double( properties, "speed", speed ); // Set the out point on the producer - mlt_producer_set_in_and_out( &this->parent, mlt_producer_get_in( &this->parent ), mlt_producer_position( &this->parent ) + 1 ); + if ( !this->end_of_video || !this->end_of_audio ) + mlt_producer_set_in_and_out( &this->parent, mlt_producer_get_in( &this->parent ), mlt_producer_position( &this->parent ) + 1 ); + else + mlt_producer_set_in_and_out( &this->parent, mlt_producer_get_in( &this->parent ), mlt_producer_position( &this->parent ) ); // Update timecode on the frame we're creating mlt_frame_set_timecode( *frame, mlt_producer_position( producer ) );