Fix 'comparison always false' warning.
authorDiego Pettenò <flameeyes@gmail.com>
Sun, 4 May 2008 10:29:12 +0000 (10:29 +0000)
committerDiego Biurrun <diego@biurrun.de>
Sun, 4 May 2008 10:29:12 +0000 (10:29 +0000)
patch by Diego 'Flameeyes' Pettenò, flameeyes gmail com

Originally committed as revision 13056 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/nutdec.c

index 186e308..03c684d 100644 (file)
@@ -425,7 +425,7 @@ static int decode_info_header(NUTContext *nut){
             type= "v";
         }
 
-        if (stream_id_plus1 < 0 || stream_id_plus1 > s->nb_streams) {
+        if (stream_id_plus1 > s->nb_streams) {
             av_log(s, AV_LOG_ERROR, "invalid stream id for info packet\n");
             continue;
         }