OSDN Git Service

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 59999b8..af0a3cc 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++;
                     }
                 }
             }