consumer_avformat.c: save disabled, experimental flushing code
[melted] / src / modules / avformat / producer_avformat.c
index 69d1d3e..03b62b6 100644 (file)
@@ -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