libavformat/avidec.c:593: error: Integer Overflow L2
  ([0, max(20, `s->nb_streams`)] - 1):unsigned32.

libavformat/avidec.c:227:1: <LHS trace>
225. }
226. 
227. static int avi_read_header(AVFormatContext *s, AVFormatParameters *ap)
     ^
228. {
229.     AVIContext *avi = s->priv_data;

libavformat/avidec.c:227:1: Parameter `s->nb_streams`
225. }
226. 
227. static int avi_read_header(AVFormatContext *s, AVFormatParameters *ap)
     ^
228. {
229.     AVIContext *avi = s->priv_data;

libavformat/avidec.c:593:9: Binary operation: ([0, max(20, s->nb_streams)] - 1):unsigned32
591.  end_of_header:
592.     /* check stream number */
593.     if (stream_index != s->nb_streams - 1) {
             ^
594.     fail:
595.         for(i=0;i<s->nb_streams;i++) {
