aboutsummaryrefslogtreecommitdiffstats
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorThierry Foucu <tfoucu@gmail.com>2013-03-22 22:47:30 -0700
committerMichael Niedermayer <michaelni@gmx.at>2013-03-23 12:29:12 +0100
commitfcf73f9c011f4e08f20ba47d3f44a296e52535ac (patch)
tree58db85011febfcf300f90883f19e180d090f3172 /ffmpeg.c
parent8b63eeb6b1c2f9e7d762f32dbd42dae124591314 (diff)
downloadffmpeg-fcf73f9c011f4e08f20ba47d3f44a296e52535ac.tar.gz
Call do_video_stats when duplicating frame
When multiple frame are encoded during vsync, current code only do_video_stats once. This need to do it every frame. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 822f7f8718..fc186224e5 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)