[FFmpeg-devel] [PATCH] Remove two 'comparison always false' warnings in libavformat

Diego Biurrun diego
Sun May 4 12:30:43 CEST 2008


On Fri, May 02, 2008 at 07:22:28PM +0200, Michael Niedermayer wrote:
> On Fri, May 02, 2008 at 06:12:12PM +0200, Diego 'Flameeyes' Petten? wrote:
> > Avoid two warnings about comparison always false.
> > 
> > ffmpeg/libavformat/nutdec.c:428: warning: comparison of unsigned expression < 0 is always false
> > 
> > --- a/libavformat/nutdec.c
> > +++ b/libavformat/nutdec.c
> > @@ -425,7 +425,7 @@ static int decode_info_header(NUTContext *nut){
> >  
> > -        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");
> 
> ok

Applied.

Diego




More information about the ffmpeg-devel mailing list