avcodec/sunrast: Fix return type for "unsupported (compression) type"

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Michael Niedermayer 2019-09-21 18:06:02 +02:00
parent 25a501b528
commit 0e8b7709a9
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ static int sunrast_decode_frame(AVCodecContext *avctx, void *data,
if (type == RT_FORMAT_TIFF || type == RT_FORMAT_IFF) {
av_log(avctx, AV_LOG_ERROR, "unsupported (compression) type\n");
return -1;
return AVERROR_PATCHWELCOME;
}
switch (depth) {