Skip to content

Commit

Permalink
lavc: Print number of reference frames if debug level >= verbose.
Browse files Browse the repository at this point in the history
  • Loading branch information
cehoyos committed Mar 13, 2015
1 parent 2e0b5f5 commit 3cd823e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions libavcodec/utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 3cd823e

Please sign in to comment.