aboutsummaryrefslogtreecommitdiffstats
path: root/avprobe.c
diff options
context:
space:
mode:
authorJanne Grunau <janne-libav@jannau.net>2012-11-30 15:44:19 +0100
committerJanne Grunau <janne-libav@jannau.net>2012-12-02 23:23:34 +0100
commit89a4465bd9d12c794434dace4332875e57c61a6b (patch)
tree768ca36550260ec9db4c8cb2087e7a9aa46fa91a /avprobe.c
parente32bea8eb479d39359042cb43fa0cb9f92863e6b (diff)
downloadffmpeg-89a4465bd9d12c794434dace4332875e57c61a6b.tar.gz
avprobe: report per stream bit rate if set by the decoder
Diffstat (limited to 'avprobe.c')
-rw-r--r--avprobe.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/avprobe.c b/avprobe.c
index 3a3ae0fa7d..4da9621b85 100644
--- a/avprobe.c
+++ b/avprobe.c
@@ -654,6 +654,10 @@ static void show_stream(AVFormatContext *fmt_ctx, int stream_idx)
probe_str("avg_frame_rate",
rational_string(val_str, sizeof(val_str), "/",
&stream->avg_frame_rate));
+ if (dec_ctx->bit_rate)
+ probe_str("bit_rate",
+ value_string(val_str, sizeof(val_str),
+ dec_ctx->bit_rate, unit_bit_per_second_str));
probe_str("time_base",
rational_string(val_str, sizeof(val_str), "/",
&stream->time_base));