[FFmpeg-cvslog] Show max bitrate for mpeg2 video streams in avcodec_string().

Carl Eugen Hoyos git at videolan.org
Thu Jul 25 23:17:13 CEST 2013


ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Thu Jul 25 10:53:47 2013 +0200| [9375879d57022ea4c9d6e822e94b3579e6a743c5] | committer: Carl Eugen Hoyos

Show max bitrate for mpeg2 video streams in avcodec_string().

See also 25b7aa9

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

 libavcodec/utils.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 20d487c..50448b4 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);
     }
 }
 



More information about the ffmpeg-cvslog mailing list