]> git.sesse.net Git - mlt/commitdiff
Fix muxing when encoding with x264 and B frames (2928953).
authorDan Dennedy <dan@dennedy.org>
Tue, 19 Jan 2010 06:32:52 +0000 (22:32 -0800)
committerDan Dennedy <dan@dennedy.org>
Tue, 19 Jan 2010 06:32:52 +0000 (22:32 -0800)
src/modules/avformat/consumer_avformat.c

index 0adf0b6679bccebda6599a20aa7853b9b058691f..7432755456cfbe0648f0b53e667f42d294ef65ba 100644 (file)
@@ -1220,6 +1220,7 @@ static void *consumer_thread( void *arg )
                                                // Set frame interlace hints
                                                output->interlaced_frame = !mlt_properties_get_int( frame_properties, "progressive" );
                                                output->top_field_first = mlt_properties_get_int( frame_properties, "top_field_first" );
+                                               output->pts = frame_count;
 
                                                // Encode the image
                                                out_size = avcodec_encode_video(c, video_outbuf, video_outbuf_size, output );