From c3e0fbc507fca3f3599fd3a9eb39eda730b54e39 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Sat, 5 Oct 2013 12:18:28 +0000 Subject: [PATCH] avcodec/dpx: return proper error code for unsupported files Also use avpriv_report_missing_feature(). Signed-off-by: Paul B Mahol --- libavcodec/dpx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/dpx.c b/libavcodec/dpx.c index f94926493a..600a735920 100644 --- a/libavcodec/dpx.c +++ b/libavcodec/dpx.c @@ -158,8 +158,8 @@ static int decode_frame(AVCodecContext *avctx, elements = 3; break; default: - av_log(avctx, AV_LOG_ERROR, "Unsupported descriptor %d\n", descriptor); - return AVERROR_INVALIDDATA; + avpriv_report_missing_feature(avctx, "Descriptor %d", descriptor); + return AVERROR_PATCHWELCOME; } switch (bits_per_color) {