aboutsummaryrefslogtreecommitdiffstats
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorWolfram Gloger <wmglo@dent.med.uni-muenchen.de>2004-10-17 23:57:28 +0000
committerMichael Niedermayer <michaelni@gmx.at>2004-10-17 23:57:28 +0000
commitdaed32f7d02d1d8d7e21675f059168b82213658a (patch)
tree451d944440b91719e803ac94bc8030959022cb7f /ffmpeg.c
parent8b4d077fc9de4d57ee874ca9007ed1553f224853 (diff)
downloadffmpeg-daed32f7d02d1d8d7e21675f059168b82213658a.tar.gz
update sync_opts for video frame copy patch by (Wolfram Gloger <wmglo at dent dot med dot uni-muenchen dot de>)
Originally committed as revision 3605 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c4
1 files changed, 3 insertions, 1 deletions
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;