]> git.sesse.net Git - mlt/commitdiff
fix A/V synch on more H.264 files (without B-frames)
authorDan Dennedy <dan@dennedy.org>
Wed, 15 Aug 2012 23:49:06 +0000 (16:49 -0700)
committerDan Dennedy <dan@dennedy.org>
Wed, 15 Aug 2012 23:49:06 +0000 (16:49 -0700)
reported by Jordan Keyes

src/modules/avformat/producer_avformat.c

index 97c6eb305ecfb1fc437d97c989c4da48071da35e..d3c9864b95a6d90df570cb3058f9c5c194b448a5 100644 (file)
@@ -1473,8 +1473,7 @@ static int producer_get_image( mlt_frame frame, uint8_t **buffer, mlt_image_form
                                  strcmp( codec_context->codec->name, "rawvideo" ) );
 
        // Turn on usage of new seek API and PTS for seeking
-       int use_pts = self->seekable &&
-               codec_context->codec_id == CODEC_ID_H264 && codec_context->has_b_frames;
+       int use_pts = self->seekable && codec_context->codec_id == CODEC_ID_H264;
        if ( mlt_properties_get( properties, "use_pts" ) )
                use_pts = mlt_properties_get_int( properties, "use_pts" );
        double delay = mlt_properties_get_double( properties, "video_delay" );