From daed32f7d02d1d8d7e21675f059168b82213658a Mon Sep 17 00:00:00 2001 From: Wolfram Gloger Date: Sun, 17 Oct 2004 23:57:28 +0000 Subject: [PATCH] update sync_opts for video frame copy patch by (Wolfram Gloger ) Originally committed as revision 3605 to svn://svn.ffmpeg.org/ffmpeg/trunk --- ffmpeg.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ffmpeg.c b/ffmpeg.c index e37fc96beb..d221f1213c 100644 --- a/ffmpeg.c +++ b/ffmpeg.c @@ -1248,8 +1248,10 @@ static int output_packet(AVInputStream *ist, int ist_index, if(ost->st->codec.codec_type == CODEC_TYPE_AUDIO) audio_size += data_size; - else if (ost->st->codec.codec_type == CODEC_TYPE_VIDEO) + else if (ost->st->codec.codec_type == CODEC_TYPE_VIDEO) { video_size += data_size; + ost->sync_opts++; + } opkt.stream_index= ost->index; opkt.data= data_buf;