aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefano Sabatini <stefasab@gmail.com>2014-04-22 13:01:14 +0200
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2014-04-23 17:17:44 +0200
commitaf04f0d1ce70e265ac1c51fed954668410f211c9 (patch)
tree364bf516f1f1d26f3710a049d78079bf98b0fd3f
parent116b959565d306fefd2c2dd676ea507e49274388 (diff)
downloadffmpeg-af04f0d1ce70e265ac1c51fed954668410f211c9.tar.gz
ffprobe: fix scaling of vali in value_string() in case -prefix is selected
Fix trac ticket #3523. (cherry picked from commit 1ba59b1cbeafe7cd28db04f772abd89eb7e4ce1e)
-rw-r--r--ffprobe.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ffprobe.c b/ffprobe.c
index a7aef02ebf..7f9c73738c 100644
--- a/ffprobe.c
+++ b/ffprobe.c
@@ -238,6 +238,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))