]> git.sesse.net Git - mlt/commitdiff
webm works better with use_pts=1 as well (3559115)
authorDan Dennedy <dan@dennedy.org>
Sat, 18 Aug 2012 06:53:26 +0000 (23:53 -0700)
committerDan Dennedy <dan@dennedy.org>
Sat, 18 Aug 2012 06:54:17 +0000 (23:54 -0700)
src/modules/avformat/producer_avformat.c

index a603d1ba2cfc10c8301d61305f582dc5d3bb01c5..ff30ce5869b51085e47047ca36f0ae113653f146 100644 (file)
@@ -1473,7 +1473,8 @@ 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;
+       int use_pts = self->seekable &&
+               ( codec_context->codec_id == CODEC_ID_H264 || codec_context->codec_id == CODEC_ID_VP8 );
        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" );