[FFmpeg-cvslog] sunrast: Remove if (unsigned int < 0) check.

Aneesh Dogra git at videolan.org
Mon Jan 30 05:29:42 CET 2012


ffmpeg | branch: master | Aneesh Dogra <lionaneesh at gmail.com> | Sun Jan 29 11:13:32 2012 +0530| [4ffb8e2c14dbbe28014fb9d5cea769d600094e1b] | committer: Ronald S. Bultje

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 at gmail.com>

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

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

diff --git a/libavcodec/sunrast.c b/libavcodec/sunrast.c
index b21c260..c7af1fd 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;
     }



More information about the ffmpeg-cvslog mailing list