]> git.sesse.net Git - mlt/commitdiff
stop checking PTS if we are only using DTS
authorDan Dennedy <dan@dennedy.org>
Thu, 21 Jun 2012 05:24:15 +0000 (22:24 -0700)
committerDan Dennedy <dan@dennedy.org>
Thu, 21 Jun 2012 05:24:15 +0000 (22:24 -0700)
src/modules/avformat/producer_avformat.c

index fc21d02c0b9ec94e96728f0f08d97f9bd59361c7..d3f0884974f41a8be4cd7496a8d736ce44c89d29 100644 (file)
@@ -1548,7 +1548,7 @@ static int producer_get_image( mlt_frame frame, uint8_t **buffer, mlt_image_form
                        if ( ret >= 0 && pkt.stream_index == self->video_index && pkt.size > 0 )
                        {
                                // Determine time code of the packet
-                               if ( pkt.pts == AV_NOPTS_VALUE )
+                               if ( use_pts && pkt.pts == AV_NOPTS_VALUE )
                                {
                                        self->invalid_pts_counter++;
                                        if ( self->invalid_pts_counter > 20 )