From 1ba59b1cbeafe7cd28db04f772abd89eb7e4ce1e Mon Sep 17 00:00:00 2001 From: Stefano Sabatini Date: Tue, 22 Apr 2014 13:01:14 +0200 Subject: [PATCH] ffprobe: fix scaling of vali in value_string() in case -prefix is selected Fix trac ticket #3523. --- ffprobe.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ffprobe.c b/ffprobe.c index 9e39ff7fa9..319bbc65c8 100644 --- a/ffprobe.c +++ b/ffprobe.c @@ -246,6 +246,7 @@ static char *value_string(char *buf, int buf_size, struct unit_value uv) vald /= pow(10, index * 3); prefix_string = decimal_unit_prefixes[index]; } + vali = vald; } if (show_float || (use_value_prefix && vald != (long long int)vald))