libavformat/avienc.c:468: error: Buffer Overrun L3
  Offset: [-1, +oo] Size: 20.

libavformat/avienc.c:449:9: <Offset trace>
447.         AVIIentry* ie = 0, *tie;
448.         int entry[MAX_STREAMS];
449.         int empty, stream_id = -1;
             ^
450. 
451.         idx_chunk = ff_start_tag(pb, "idx1");

libavformat/avienc.c:449:9: Assignment
447.         AVIIentry* ie = 0, *tie;
448.         int entry[MAX_STREAMS];
449.         int empty, stream_id = -1;
             ^
450. 
451.         idx_chunk = ff_start_tag(pb, "idx1");

libavformat/avienc.c:438:1: <Length trace>
436. }
437. 
438. static int avi_write_idx1(AVFormatContext *s)
     ^
439. {
440.     ByteIOContext *pb = s->pb;

libavformat/avienc.c:438:1: Parameter `s->streams[*]`
436. }
437. 
438. static int avi_write_idx1(AVFormatContext *s)
     ^
439. {
440.     ByteIOContext *pb = s->pb;

libavformat/avienc.c:468:35: Array access: Offset: [-1, +oo] Size: 20
466.             if (!empty) {
467.                 avi_stream2fourcc(&tag[0], stream_id,
468.                                   s->streams[stream_id]->codec->codec_type);
                                       ^
469.                 put_tag(pb, &tag[0]);
470.                 put_le32(pb, ie->flags);
