Browse Source

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

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n0.10
Michael Niedermayer 14 years ago
parent
commit
8beeec8821
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/sunrast.c

+ 1
- 1
libavcodec/sunrast.c View File

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


Loading…
Cancel
Save