]> git.sesse.net Git - mlt/commitdiff
Fix video4linux in avformat producer.
authorDan Dennedy <dan@dennedy.org>
Sun, 20 Feb 2011 05:39:54 +0000 (21:39 -0800)
committerDan Dennedy <dan@dennedy.org>
Sun, 20 Feb 2011 05:39:54 +0000 (21:39 -0800)
melt video4linux2:/dev/video0

src/modules/avformat/producer_avformat.c

index 6658e86a8bd131cbc25f8eda8218aedab69f1e28..3f91b3d3831749321e17150c91e9b96c971a379e 100644 (file)
@@ -1242,7 +1242,7 @@ static int producer_get_image( mlt_frame frame, uint8_t **buffer, mlt_image_form
                                }
                                else
                                {
-                                       if ( pkt.dts != AV_NOPTS_VALUE )
+                                       if ( this->seekable && pkt.dts != AV_NOPTS_VALUE )
                                        {
                                                int_position = ( int )( av_q2d( stream->time_base ) * pkt.dts * source_fps + 0.5 );
                                                if ( context->start_time != AV_NOPTS_VALUE )