[FFmpeg-devel] [PATCH] [PATCH] Call do_video_stats when duplicating frame

Thierry Foucu tfoucu at gmail.com
Sat Mar 23 06:47:30 CET 2013


When multiple frame are encoded during vsync, current code only
do_video_stats once. This need to do it every frame.
---
 ffmpeg.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ffmpeg.c b/ffmpeg.c
index 822f7f8..fc18622 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -963,10 +963,10 @@ static void do_video_out(AVFormatContext *s,
      * flush, we need to limit them here, before they go into encoder.
      */
     ost->frame_number++;
-  }
 
     if (vstats_filename && frame_size)
         do_video_stats(ost, frame_size);
+  }
 }
 
 static double psnr(double d)
-- 
1.8.1.3



More information about the ffmpeg-devel mailing list