[FFmpeg-cvslog] ffprobe: use print_val to print the frame pkt_size value
Stefano Sabatini
git at videolan.org
Wed Dec 16 19:06:17 CET 2015
ffmpeg | branch: master | Stefano Sabatini <stefasab at gmail.com> | Wed Dec 16 18:57:05 2015 +0100| [91c2a33d01d8d7f04e5044f701ac8c741fdb9814] | committer: Stefano Sabatini
ffprobe: use print_val to print the frame pkt_size value
This allows to honour formatting options.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=91c2a33d01d8d7f04e5044f701ac8c741fdb9814
---
ffprobe.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/ffprobe.c b/ffprobe.c
index 7128083..0b672ff 100644
--- a/ffprobe.c
+++ b/ffprobe.c
@@ -1827,6 +1827,7 @@ static void show_frame(WriterContext *w, AVFrame *frame, AVStream *stream,
AVFormatContext *fmt_ctx)
{
AVBPrint pbuf;
+ char val_str[128];
const char *s;
int i;
@@ -1849,7 +1850,7 @@ static void show_frame(WriterContext *w, AVFrame *frame, AVStream *stream,
print_duration_time("pkt_duration_time", av_frame_get_pkt_duration(frame), &stream->time_base);
if (av_frame_get_pkt_pos (frame) != -1) print_fmt ("pkt_pos", "%"PRId64, av_frame_get_pkt_pos(frame));
else print_str_opt("pkt_pos", "N/A");
- if (av_frame_get_pkt_size(frame) != -1) print_fmt ("pkt_size", "%d", av_frame_get_pkt_size(frame));
+ if (av_frame_get_pkt_size(frame) != -1) print_val ("pkt_size", av_frame_get_pkt_size(frame), unit_byte_str);
else print_str_opt("pkt_size", "N/A");
switch (stream->codec->codec_type) {
More information about the ffmpeg-cvslog
mailing list