From a7305c780b54b587adb73baa7b387bbcd784a1d1 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sun, 24 Jan 2016 16:15:24 +0100 Subject: [PATCH] Print the whitelists if entities are not found on them Signed-off-by: Michael Niedermayer --- libavcodec/utils.c | 2 +- libavformat/utils.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libavcodec/utils.c b/libavcodec/utils.c index 63439bb892..fb6c5f450e 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -1234,7 +1234,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 (%s) not on whitelist\n", codec->name); + av_log(avctx, AV_LOG_ERROR, "Codec (%s) not on whitelist \'%s\'\n", codec->name, avctx->codec_whitelist); ret = AVERROR(EINVAL); goto free_and_end; } diff --git a/libavformat/utils.c b/libavformat/utils.c index b6457b067f..6bf2fd17a9 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -313,7 +313,7 @@ int av_demuxer_open(AVFormatContext *ic) { int err; if (ic->format_whitelist && av_match_list(ic->iformat->name, ic->format_whitelist, ',') <= 0) { - av_log(ic, AV_LOG_ERROR, "Format not on whitelist\n"); + av_log(ic, AV_LOG_ERROR, "Format not on whitelist \'%s\'\n", ic->format_whitelist); return AVERROR(EINVAL); } @@ -442,7 +442,7 @@ int avformat_open_input(AVFormatContext **ps, const char *filename, s->probe_score = ret; if (s->format_whitelist && av_match_list(s->iformat->name, s->format_whitelist, ',') <= 0) { - av_log(s, AV_LOG_ERROR, "Format not on whitelist\n"); + av_log(s, AV_LOG_ERROR, "Format not on whitelist \'%s\'\n", s->format_whitelist); ret = AVERROR(EINVAL); goto fail; }