ffprobe: fix scaling of vali in value_string() in case -prefix is selected

Fix trac ticket #3523.
(cherry picked from commit 1ba59b1cbe)
This commit is contained in:
Stefano Sabatini 2014-04-22 13:01:14 +02:00 committed by Carl Eugen Hoyos
parent 1530fbccac
commit 0759bdc315
1 changed files with 1 additions and 0 deletions

View File

@ -203,6 +203,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))