summaryrefslogtreecommitdiff
path: root/libavcodec/sunrast.c
diff options
context:
space:
mode:
authorAneesh Dogra <lionaneesh@gmail.com>2012-01-29 10:55:32 +0530
committerRonald S. Bultje <rsbultje@gmail.com>2012-01-29 08:11:18 -0800
commit4ffb8e2c14dbbe28014fb9d5cea769d600094e1b (patch)
treed9b4fc3af0072738124389c626813813ea43ce1f /libavcodec/sunrast.c
parentfef3771778dbc9e7a17b7ce773f1b6d9651dff6f (diff)
sunrast: Remove if (unsigned int < 0) check.
Note: This fixes the following GCC warning :- libavcodec/sunrast.c:94: warning: comparison of unsigned expression < 0 is always false. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
Diffstat (limited to 'libavcodec/sunrast.c')
-rw-r--r--libavcodec/sunrast.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/sunrast.c b/libavcodec/sunrast.c
index b21c26089e..c7af1fd126 100644
--- a/libavcodec/sunrast.c
+++ b/libavcodec/sunrast.c
@@ -93,7 +93,7 @@ static int sunrast_decode_frame(AVCodecContext *avctx, void *data,
av_log(avctx, AV_LOG_ERROR, "unsupported (compression) type\n");
return -1;
}
- 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;
}