mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
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;
|
||||
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) {
|
||||
|
Loading…
Reference in New Issue
Block a user