OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8ca3766
)
Show max bitrate for mpeg2 video streams in avcodec_string().
author
Carl Eugen Hoyos
<cehoyos@ag.or.at>
Thu, 25 Jul 2013 08:53:47 +0000
(10:53 +0200)
committer
Carl Eugen Hoyos
<cehoyos@ag.or.at>
Thu, 25 Jul 2013 17:08:19 +0000
(19:08 +0200)
See also
25b7aa9
libavcodec/utils.c
patch
|
blob
|
history
diff --git
a/libavcodec/utils.c
b/libavcodec/utils.c
index
20d487c
..
50448b4
100644
(file)
--- 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);
}
}