On Sat, Feb 18, 2012 at 02:24:19AM +0530, Aneesh Dogra wrote:
>
> --- a/libavcodec/sunrast.c
> +++ b/libavcodec/sunrast.c
> @@ -77,7 +77,11 @@ static int sunrast_decode_frame(AVCodecContext *avctx,
> void *data,
> - if (maptype & ~1) {
> + if (maptype == RMT_RAW) {
> + av_log_ask_for_sample(avctx, "unsupported colourmap type\n");
> + return AVERROR_PATCHWELCOME;
> + }
> + if (maptype > RMT_RAW) {
> av_log(avctx, AV_LOG_ERROR, "invalid colormap type\n");
> return AVERROR_INVALIDDATA;
> }
col_O_rmap
Don't mix British and American English in one file please; if in doubt,
stick to American English.
Diego
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel