mirror of https://git.ffmpeg.org/ffmpeg.git
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>
This commit is contained in:
parent
8b63eeb6b1
commit
fcf73f9c01
2
ffmpeg.c
2
ffmpeg.c
|
@ -963,11 +963,11 @@ static void do_video_out(AVFormatContext *s,
|
||||||
* flush, we need to limit them here, before they go into encoder.
|
* flush, we need to limit them here, before they go into encoder.
|
||||||
*/
|
*/
|
||||||
ost->frame_number++;
|
ost->frame_number++;
|
||||||
}
|
|
||||||
|
|
||||||
if (vstats_filename && frame_size)
|
if (vstats_filename && frame_size)
|
||||||
do_video_stats(ost, frame_size);
|
do_video_stats(ost, frame_size);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
static double psnr(double d)
|
static double psnr(double d)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue