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

Michael Niedermayer git at videolan.org
Sun Dec 18 01:22:44 CET 2011


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Dec 18 00:34:01 2011 +0100| [8beeec8821bd78d8740b1ced79a03322646f3578] | committer: Michael Niedermayer

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

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8beeec8821bd78d8740b1ced79a03322646f3578
---

 libavcodec/sunrast.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavcodec/sunrast.c b/libavcodec/sunrast.c
index 0f63739..3e1cea6 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;
     }



More information about the ffmpeg-cvslog mailing list