summaryrefslogtreecommitdiff
path: root/libavfilter/vf_psnr.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2021-02-12 23:16:50 +0100
committerPaul B Mahol <onemda@gmail.com>2021-02-12 23:22:32 +0100
commit6c52c27d3da706ed424d9338c47be497c8d620e8 (patch)
tree67649cac2123697cefbb42d8a8c23a9ced578540 /libavfilter/vf_psnr.c
parent3300d718f7fa9788d7eee66917f382dece398af5 (diff)
avfilter/vf_psnr: remove precision limits for metadata values
Diffstat (limited to 'libavfilter/vf_psnr.c')
-rw-r--r--libavfilter/vf_psnr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_psnr.c b/libavfilter/vf_psnr.c
index 7d3d7c9248..0d6bbad42f 100644
--- a/libavfilter/vf_psnr.c
+++ b/libavfilter/vf_psnr.c
@@ -132,7 +132,7 @@ void compute_images_mse(PSNRContext *s,
static void set_meta(AVDictionary **metadata, const char *key, char comp, float d)
{
char value[128];
- snprintf(value, sizeof(value), "%0.2f", d);
+ snprintf(value, sizeof(value), "%f", d);
if (comp) {
char key2[128];
snprintf(key2, sizeof(key2), "%s%c", key, comp);