ffmpeg | branch: master | Carl Eugen Hoyos <[email protected]> | Fri Mar 13 08:52:36 2015 +0100| [3cd823e46f708df476260ed898064b68739329b1] | committer: Carl Eugen Hoyos
lavc: Print number of reference frames if debug level >= verbose. > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3cd823e46f708df476260ed898064b68739329b1 --- libavcodec/utils.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libavcodec/utils.c b/libavcodec/utils.c index 5b28496..d739047 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]; _______________________________________________ ffmpeg-cvslog mailing list [email protected] http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog
