From: Paul B Mahol Date: Sat, 5 Oct 2013 12:18:28 +0000 (+0000) Subject: avcodec/dpx: return proper error code for unsupported files X-Git-Tag: android-x86-4.4-r1~770 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=c3e0fbc507fca3f3599fd3a9eb39eda730b54e39;p=android-x86%2Fexternal-ffmpeg.git avcodec/dpx: return proper error code for unsupported files Also use avpriv_report_missing_feature(). Signed-off-by: Paul B Mahol --- 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) {