X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fmodules%2Favformat%2Fproducer_avformat.c;h=03b62b67d4f60a8989e1256b322726e7417c9cfd;hb=2c3bf9c72ca4986dee0d6abcefb9227d7172c7cf;hp=69d1d3e32b01d3809d9f07f81ac11e8e8b555211;hpb=e1e17509ff9c257971713b8e34cb4c94ba75db5b;p=melted diff --git a/src/modules/avformat/producer_avformat.c b/src/modules/avformat/producer_avformat.c index 69d1d3e..03b62b6 100644 --- a/src/modules/avformat/producer_avformat.c +++ b/src/modules/avformat/producer_avformat.c @@ -274,7 +274,7 @@ static int producer_open( mlt_producer this, char *file ) // This isn't going to be accurate for all formats mlt_position frames = ( mlt_position )( ( ( double )context->duration / ( double )AV_TIME_BASE ) * fps + 0.5 ); mlt_properties_set_position( properties, "out", frames - 1 ); - mlt_properties_set_position( properties, "length", frames - 0 ); + mlt_properties_set_position( properties, "length", frames ); } // Find default audio and video streams