fixes the frame number counter for -vcodec copy patch by (mru at users dot sourceforg...
authorMåns Rullgård <mans@mansr.com>
Fri, 8 Nov 2002 20:33:46 +0000 (20:33 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 8 Nov 2002 20:33:46 +0000 (20:33 +0000)
Originally committed as revision 1176 to svn://svn.ffmpeg.org/ffmpeg/trunk

ffmpeg.c

index 59999b8c6f1123f8f8d962aec96410817927118e..af0a3cc78c5ab2a006c8f68fcaab5007e38c5e2b 100644 (file)
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -1292,6 +1292,7 @@ static int av_encode(AVFormatContext **output_files,
                         /* force the input stream PTS */
                         av_write_frame(os, ost->index, data_buf, data_size);
                        ost->st->codec.frame_number++;
+                       ost->frame_number++;
                     }
                 }
             }