summaryrefslogtreecommitdiff
path: root/libavcodec/utils.c
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2015-03-13 08:52:36 +0100
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2015-03-13 08:52:36 +0100
commit3cd823e46f708df476260ed898064b68739329b1 (patch)
tree615a402194bb52516fca6b759fd9f75e2a8c45d3 /libavcodec/utils.c
parent2e0b5f5c90a4bc1440703ba5e8bf7139ff42f367 (diff)
lavc: Print number of reference frames if debug level >= verbose.
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r--libavcodec/utils.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 5b284968b3..d739047d6d 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -3024,6 +3024,12 @@ void avcodec_string(char *buf, int buf_size, AVCodecContext *enc, int encode)
if (profile)
snprintf(buf + strlen(buf), buf_size - strlen(buf), " (%s)", profile);
+ if ( enc->codec_type == AVMEDIA_TYPE_VIDEO
+ && av_log_get_level() >= AV_LOG_VERBOSE
+ && enc->refs)
+ snprintf(buf + strlen(buf), buf_size - strlen(buf),
+ ", %d reference frame%s",
+ enc->refs, enc->refs > 1 ? "s" : "");
if (enc->codec_tag) {
char tag_buf[32];