[FFmpeg-cvslog] ffprobe: increase precision for the shown float values

Stefano Sabatini git at videolan.org
Fri Jan 20 13:38:29 CET 2012


ffmpeg | branch: master | Stefano Sabatini <stefasab at gmail.com> | Thu Jan 19 01:46:03 2012 +0100| [23934e5f41f017587c15b9de4c3594a2627e14b5] | committer: Stefano Sabatini

ffprobe: increase precision for the shown float values

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=23934e5f41f017587c15b9de4c3594a2627e14b5
---

 ffprobe.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ffprobe.c b/ffprobe.c
index 92b0f45..ca6133e 100644
--- a/ffprobe.c
+++ b/ffprobe.c
@@ -123,7 +123,7 @@ static char *value_string(char *buf, int buf_size, struct unit_value uv)
         }
 
         if (show_float || (use_value_prefix && vald != (long long int)vald))
-            l = snprintf(buf, buf_size, "%.3f", vald);
+            l = snprintf(buf, buf_size, "%f", vald);
         else
             l = snprintf(buf, buf_size, "%lld", (long long int)vald);
         snprintf(buf+l, buf_size-l, "%s%s%s", *prefix_string || show_value_unit ? " " : "",



More information about the ffmpeg-cvslog mailing list