[FFmpeg-cvslog] avprobe: report per stream bit rate if set by the decoder

Janne Grunau git at videolan.org
Mon Dec 3 02:00:54 CET 2012


ffmpeg | branch: master | Janne Grunau <janne-libav at jannau.net> | Fri Nov 30 15:44:19 2012 +0100| [89a4465bd9d12c794434dace4332875e57c61a6b] | committer: Janne Grunau

avprobe: report per stream bit rate if set by the decoder

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

 avprobe.c |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/avprobe.c b/avprobe.c
index 3a3ae0f..4da9621 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));



More information about the ffmpeg-cvslog mailing list