aboutsummaryrefslogtreecommitdiffstats
path: root/ffprobe.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefasab@gmail.com>2011-11-25 13:19:01 +0100
committerStefano Sabatini <stefasab@gmail.com>2011-11-25 13:25:56 +0100
commit65f24858edba17d3c81de41f549b905573275a65 (patch)
tree24d401400d36e62b404f9c1c42e19154b5de7571 /ffprobe.c
parent6d16a96a95e1b6b79344fbf3069004b1dd952d64 (diff)
downloadffmpeg-65f24858edba17d3c81de41f549b905573275a65.tar.gz
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.
Diffstat (limited to 'ffprobe.c')
-rw-r--r--ffprobe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ffprobe.c b/ffprobe.c
index 52f07e72ff..f58b77c296 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)