mirror of https://git.ffmpeg.org/ffmpeg.git
avcodec/dpx: return proper error code for unsupported files
Also use avpriv_report_missing_feature(). Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
9665217a75
commit
c3e0fbc507
|
@ -158,8 +158,8 @@ static int decode_frame(AVCodecContext *avctx,
|
||||||
elements = 3;
|
elements = 3;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
av_log(avctx, AV_LOG_ERROR, "Unsupported descriptor %d\n", descriptor);
|
avpriv_report_missing_feature(avctx, "Descriptor %d", descriptor);
|
||||||
return AVERROR_INVALIDDATA;
|
return AVERROR_PATCHWELCOME;
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (bits_per_color) {
|
switch (bits_per_color) {
|
||||||
|
|
Loading…
Reference in New Issue