[FFmpeg-cvslog] ffprobe: always print int values with print_val()

Stefano Sabatini git at videolan.org
Fri Nov 25 13:27:36 CET 2011


ffmpeg | branch: master | Stefano Sabatini <stefasab at gmail.com> | Fri Nov 25 13:19:01 2011 +0100| [65f24858edba17d3c81de41f549b905573275a65] | committer: Stefano Sabatini

ffprobe: always print int values with print_val()

In particular, make the json writer write size values, fix regression
introduced with the addition of the print_val() macro.

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

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

diff --git a/ffprobe.c b/ffprobe.c
index 52f07e7..f58b77c 100644
--- a/ffprobe.c
+++ b/ffprobe.c
@@ -892,7 +892,7 @@ static void writer_register_all(void)
 #define print_time(k, v, tb)    writer_print_time(w, k, v, tb)
 #define print_ts(k, v)          writer_print_ts(w, k, v)
 #define print_val(k, v, u)      writer_print_string(w, k, \
-    value_string(val_str, sizeof(val_str), (struct unit_value){.val.i = v, .unit=u}), 1)
+    value_string(val_str, sizeof(val_str), (struct unit_value){.val.i = v, .unit=u}), 0)
 #define print_section_header(s) writer_print_section_header(w, s)
 #define print_section_footer(s) writer_print_section_footer(w, s)
 #define show_tags(metadata)     writer_show_tags(w, metadata)



More information about the ffmpeg-cvslog mailing list