Browse Source

sunrast: Add a sample request for RMP_RAW colormap.

Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
tags/n0.11
Aneesh Dogra Justin Ruggles 13 years ago
parent
commit
79c7064c5f
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      libavcodec/sunrast.c

+ 5
- 1
libavcodec/sunrast.c View File

@@ -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;
}


Loading…
Cancel
Save