libavformat/avidec.c:600: 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:600:9: Binary operation: ([0, max(20, s->nb_streams)] - 1):unsigned32
598.  end_of_header:
599.     /* check stream number */
600.     if (stream_index != s->nb_streams - 1) {
             ^
601.     fail:
602.         return -1;
