aboutsummaryrefslogtreecommitdiffstats
path: root/ffprobe.c
diff options
context:
space:
mode:
authorBilly Shambrook <billy.shambrook@gmail.com>2014-06-01 17:36:36 +0100
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2014-06-09 23:19:33 +0200
commit3c2d9f86c718f8281b4e2fc0e426f9349c9c4ec6 (patch)
tree41160d830f93b6867d74ff45e7b7af236b5b4d96 /ffprobe.c
parent06f576c4ab3bf21d26c7ea496e836a5fe7a10f87 (diff)
downloadffmpeg-3c2d9f86c718f8281b4e2fc0e426f9349c9c4ec6.tar.gz
ffprobe: add rc_max_rate to stream output
The value is used by some bitstream to mark the maximum bit rate. See thread: Subject: [FFmpeg-devel] [PATCH] Add rc_max_rate to ffprobe stream output Date: Sun, 1 Jun 2014 17:36:36 +0100 To: ffmpeg-devel@ffmpeg.org http://thread.gmane.org/gmane.comp.video.ffmpeg.devel/178461 Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
Diffstat (limited to 'ffprobe.c')
-rw-r--r--ffprobe.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ffprobe.c b/ffprobe.c
index 2380ee16b2..baeca1dd3b 100644
--- a/ffprobe.c
+++ b/ffprobe.c
@@ -2122,6 +2122,8 @@ static int show_stream(WriterContext *w, AVFormatContext *fmt_ctx, int stream_id
print_time("duration", stream->duration, &stream->time_base);
if (dec_ctx->bit_rate > 0) print_val ("bit_rate", dec_ctx->bit_rate, unit_bit_per_second_str);
else print_str_opt("bit_rate", "N/A");
+ if (dec_ctx->rc_max_rate > 0) print_val ("max_bit_rate", dec_ctx->rc_max_rate, unit_bit_per_second_str);
+ else print_str_opt("max_bit_rate", "N/A");
if (stream->nb_frames) print_fmt ("nb_frames", "%"PRId64, stream->nb_frames);
else print_str_opt("nb_frames", "N/A");
if (nb_streams_frames[stream_idx]) print_fmt ("nb_read_frames", "%"PRIu64, nb_streams_frames[stream_idx]);