Browse code

ffprobe: increase precision for the shown float values

Stefano Sabatini authored on 2012/01/19 09:46:03
Showing 1 changed files
... ...
@@ -123,7 +123,7 @@ static char *value_string(char *buf, int buf_size, struct unit_value uv)
123 123
         }
124 124
 
125 125
         if (show_float || (use_value_prefix && vald != (long long int)vald))
126
-            l = snprintf(buf, buf_size, "%.3f", vald);
126
+            l = snprintf(buf, buf_size, "%f", vald);
127 127
         else
128 128
             l = snprintf(buf, buf_size, "%lld", (long long int)vald);
129 129
         snprintf(buf+l, buf_size-l, "%s%s%s", *prefix_string || show_value_unit ? " " : "",