aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2013-07-25 10:53:47 +0200
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2013-07-25 19:08:19 +0200
commit9375879d57022ea4c9d6e822e94b3579e6a743c5 (patch)
tree9ea01ad54596d7fc439e1812f64e287e9de9bca0 /libavcodec
parent8ca3766f007dc9684535d2d5674710108ba58dc3 (diff)
downloadffmpeg-9375879d57022ea4c9d6e822e94b3579e6a743c5.tar.gz
Show max bitrate for mpeg2 video streams in avcodec_string().
See also 25b7aa9
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/utils.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 20d487c52e..50448b4a85 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -2650,6 +2650,9 @@ void avcodec_string(char *buf, int buf_size, AVCodecContext *enc, int encode)
if (bitrate != 0) {
snprintf(buf + strlen(buf), buf_size - strlen(buf),
", %d kb/s", bitrate / 1000);
+ } else if (enc->rc_max_rate > 0) {
+ snprintf(buf + strlen(buf), buf_size - strlen(buf),
+ ", max. %d kb/s", enc->rc_max_rate / 1000);
}
}