update sync_opts for video frame copy patch by (Wolfram Gloger <wmglo at dent dot...
authorWolfram Gloger <wmglo@dent.med.uni-muenchen.de>
Sun, 17 Oct 2004 23:57:28 +0000 (23:57 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 17 Oct 2004 23:57:28 +0000 (23:57 +0000)
Originally committed as revision 3605 to svn://svn.ffmpeg.org/ffmpeg/trunk

ffmpeg.c

index e37fc96..d221f12 100644 (file)
--- 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;