[libav-commits] sunrast: Add a sample request for TIFF, IFF, and Experimental Rastfile formats.

Aneesh Dogra git at libav.org
Sun Jan 29 17:28:43 CET 2012


Module: libav
Branch: master
Commit: f9708e9a0e76d3dfa89f175edde68d8cadb02763

Author:    Aneesh Dogra <lionaneesh at gmail.com>
Committer: Ronald S. Bultje <rsbultje at gmail.com>
Date:      Sat Jan 28 18:52:15 2012 +0530

sunrast: Add a sample request for TIFF, IFF, and Experimental Rastfile formats.

Signed-off-by: Aneesh Dogra <lionaneesh at gmail.com>
Signed-off-by: Ronald S. Bultje <rsbultje at gmail.com>

---

 libavcodec/sunrast.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavcodec/sunrast.c b/libavcodec/sunrast.c
index 23f1e6f..601ba6e 100644
--- a/libavcodec/sunrast.c
+++ b/libavcodec/sunrast.c
@@ -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");



More information about the libav-commits mailing list