Commit 3bb58c37 authored by Ronald S. Bultje's avatar Ronald S. Bultje Committed by Michael Niedermayer

vf_psnr: fix rgb channel order mixup in final log message.

Reviewed-by: 's avatarPaul B Mahol <onemda@gmail.com>
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 9879421f
......@@ -327,9 +327,11 @@ static av_cold void uninit(AVFilterContext *ctx)
char buf[256];
buf[0] = 0;
for (j = 0; j < s->nb_components; j++)
for (j = 0; j < s->nb_components; j++) {
int c = s->is_rgb ? s->rgba_map[j] : j;
av_strlcatf(buf, sizeof(buf), " %c:%0.2f", s->comps[j],
get_psnr(s->mse_comp[j], s->nb_frames, s->max[j]));
get_psnr(s->mse_comp[c], s->nb_frames, s->max[c]));
}
av_log(ctx, AV_LOG_INFO, "PSNR%s average:%0.2f min:%0.2f max:%0.2f\n",
buf,
get_psnr(s->mse, s->nb_frames, s->average_max),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment