sunrast: Add a sample request for TIFF, IFF, and Experimental Rastfile formats.
authorAneesh Dogra <lionaneesh@gmail.com>
Sat, 28 Jan 2012 13:04:15 +0000 (18:34 +0530)
committerRonald S. Bultje <rsbultje@gmail.com>
Sun, 29 Jan 2012 16:11:18 +0000 (08:11 -0800)
Signed-off-by: Aneesh Dogra <lionaneesh@gmail.com>
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
libavcodec/sunrast.c

index 23f1e6f..601ba6e 100644 (file)
@@ -90,8 +90,8 @@ static int sunrast_decode_frame(AVCodecContext *avctx, void *data,
     buf      += 32;
 
     if (type == RT_FORMAT_TIFF || type == RT_FORMAT_IFF || type == RT_EXPERIMENTAL) {
-        av_log(avctx, AV_LOG_ERROR, "unsupported (compression) type\n");
-        return -1;
+        av_log_ask_for_sample(avctx, "unsupported (compression) type\n");
+        return AVERROR_PATCHWELCOME;
     }
     if (type > RT_FORMAT_IFF) {
         av_log(avctx, AV_LOG_ERROR, "invalid (compression) type\n");