From 8beeec8821bd78d8740b1ced79a03322646f3578 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sun, 18 Dec 2011 00:34:01 +0100 Subject: [PATCH] sunrast: Fix warning: comparison of unsigned expression < 0 is always false [-Wtype-limits] Signed-off-by: Michael Niedermayer --- libavcodec/sunrast.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/sunrast.c b/libavcodec/sunrast.c index 0f637399ef..3e1cea6c36 100644 --- a/libavcodec/sunrast.c +++ b/libavcodec/sunrast.c @@ -70,7 +70,7 @@ static int sunrast_decode_frame(AVCodecContext *avctx, void *data, maplength = AV_RB32(buf+28); buf += 32; - if (type < RT_OLD || type > RT_FORMAT_IFF) { + if (type > RT_FORMAT_IFF) { av_log(avctx, AV_LOG_ERROR, "invalid (compression) type\n"); return -1; }