aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2013-10-05 12:18:28 +0000
committerPaul B Mahol <onemda@gmail.com>2013-10-05 12:26:21 +0000
commitc3e0fbc507fca3f3599fd3a9eb39eda730b54e39 (patch)
tree6bcdd0698c27e405bff3926431d76a8b2ae93f1a
parent9665217a75d92dd4c3a1ad82cf0394bb673797cf (diff)
downloadffmpeg-c3e0fbc507fca3f3599fd3a9eb39eda730b54e39.tar.gz
avcodec/dpx: return proper error code for unsupported files
Also use avpriv_report_missing_feature(). Signed-off-by: Paul B Mahol <onemda@gmail.com>
-rw-r--r--libavcodec/dpx.c4
1 files 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) {