Commit 8beeec88 authored by Michael Niedermayer's avatar Michael Niedermayer

sunrast: Fix warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 0db7b307
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment