Commit c3e0fbc5 authored by Paul B Mahol's avatar Paul B Mahol

avcodec/dpx: return proper error code for unsupported files

Also use avpriv_report_missing_feature().
Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent 9665217a
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment