aboutsummaryrefslogtreecommitdiffstats
path: root/ffprobe.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefasab@gmail.com>2014-04-22 13:01:14 +0200
committerStefano Sabatini <stefasab@gmail.com>2014-04-23 10:32:42 +0200
commit1ba59b1cbeafe7cd28db04f772abd89eb7e4ce1e (patch)
tree884ff9b1f76e0f1607ee4ab05657acb6789e3cd3 /ffprobe.c
parentbf411fffd4535458bf3ad68ca3b9947458961abe (diff)
downloadffmpeg-1ba59b1cbeafe7cd28db04f772abd89eb7e4ce1e.tar.gz
ffprobe: fix scaling of vali in value_string() in case -prefix is selected
Fix trac ticket #3523.
Diffstat (limited to 'ffprobe.c')
-rw-r--r--ffprobe.c1
1 files changed, 1 insertions, 0 deletions
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))