aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/vf_psnr.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2013-07-09 09:38:47 +0000
committerPaul B Mahol <onemda@gmail.com>2013-07-09 09:40:53 +0000
commit3c5071db88b215d79a0b0f5b447d987b667e8817 (patch)
treeb7c594d9e93980dc7db793407e5146b9f6452e85 /libavfilter/vf_psnr.c
parentd0a79339916b7a299c582de87d0e6555ffdf5ec4 (diff)
downloadffmpeg-3c5071db88b215d79a0b0f5b447d987b667e8817.tar.gz
lavfi/psnr: rename 's' parameter to match documentation
Also removes some irrelevant lines in documentation. Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavfilter/vf_psnr.c')
-rw-r--r--libavfilter/vf_psnr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavfilter/vf_psnr.c b/libavfilter/vf_psnr.c
index 37bfde4c46..6bc866fbb6 100644
--- a/libavfilter/vf_psnr.c
+++ b/libavfilter/vf_psnr.c
@@ -137,8 +137,8 @@ static AVFrame *do_psnr(AVFilterContext *ctx, AVFrame *main,
c = s->is_rgb ? s->rgba_map[j] : j;
set_meta(metadata, "lavfi.psnr.mse.", s->comps[j], comp_mse[c]);
set_meta(metadata, "lavfi.psnr.mse_avg", 0, mse);
- set_meta(metadata, "lavfi.psnr.s.", s->comps[j], get_psnr(comp_mse[c], 1, s->max[c]));
- set_meta(metadata, "lavfi.psnr.s_avg", 0, get_psnr(mse, 1, s->average_max));
+ set_meta(metadata, "lavfi.psnr.psnr.", s->comps[j], get_psnr(comp_mse[c], 1, s->max[c]));
+ set_meta(metadata, "lavfi.psnr.psnr_avg", 0, get_psnr(mse, 1, s->average_max));
}
if (s->stats_file) {
@@ -149,7 +149,7 @@ static AVFrame *do_psnr(AVFilterContext *ctx, AVFrame *main,
}
for (j = 0; j < s->desc->nb_components; j++) {
c = s->is_rgb ? s->rgba_map[j] : j;
- fprintf(s->stats_file, "s%c:%0.2f ", s->comps[j],
+ fprintf(s->stats_file, "psnr_%c:%0.2f ", s->comps[j],
get_psnr(comp_mse[c], 1, s->max[c]));
}
fprintf(s->stats_file, "\n");