Browse Source

avcodec/utils: Print the codec name that is missing on the whitelist

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.5
Michael Niedermayer 10 years ago
parent
commit
00dbd7c4ae
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/utils.c

+ 1
- 1
libavcodec/utils.c View File

@@ -1386,7 +1386,7 @@ int attribute_align_arg avcodec_open2(AVCodecContext *avctx, const AVCodec *code
goto free_and_end;

if (avctx->codec_whitelist && av_match_list(codec->name, avctx->codec_whitelist, ',') <= 0) {
av_log(avctx, AV_LOG_ERROR, "Codec not on whitelist\n");
av_log(avctx, AV_LOG_ERROR, "Codec (%s) not on whitelist\n", codec->name);
ret = AVERROR(EINVAL);
goto free_and_end;
}


Loading…
Cancel
Save