mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-08 13:22:53 +02:00
sunrast: Fix warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
0db7b30700
commit
8beeec8821
@ -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…
Reference in New Issue
Block a user