[FFmpeg-cvslog] sunrast: Add a sample request for RMP_RAW colormap.
Aneesh Dogra
git at videolan.org
Wed Feb 22 03:01:53 CET 2012
ffmpeg | branch: master | Aneesh Dogra <lionaneesh at gmail.com> | Mon Feb 20 00:15:21 2012 +0530| [79c7064c5f48c974bc713471d2a0deac6bf873a3] | committer: Justin Ruggles
sunrast: Add a sample request for RMP_RAW colormap.
Signed-off-by: Justin Ruggles <justin.ruggles at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=79c7064c5f48c974bc713471d2a0deac6bf873a3
---
libavcodec/sunrast.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/libavcodec/sunrast.c b/libavcodec/sunrast.c
index fef17b4..b41bb2e 100644
--- a/libavcodec/sunrast.c
+++ b/libavcodec/sunrast.c
@@ -77,7 +77,11 @@ static int sunrast_decode_frame(AVCodecContext *avctx, void *data,
av_log(avctx, AV_LOG_ERROR, "invalid image size\n");
return AVERROR_INVALIDDATA;
}
- if (maptype & ~1) {
+ if (maptype == RMT_RAW) {
+ av_log_ask_for_sample(avctx, "unsupported colormap type\n");
+ return AVERROR_PATCHWELCOME;
+ }
+ if (maptype > RMT_RAW) {
av_log(avctx, AV_LOG_ERROR, "invalid colormap type\n");
return AVERROR_INVALIDDATA;
}
More information about the ffmpeg-cvslog
mailing list