avcodec/sunrast: Fix return type for "unsupported (compression) type"
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 21 Sep 2019 16:06:02 +0000 (18:06 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 22 Sep 2019 16:16:38 +0000 (18:16 +0200)
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/sunrast.c

index 0af5626..8834212 100644 (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) {