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

libavformat/avienc.c:433:9: <Offset trace>
431.         AVIIentry* ie = 0, *tie;
432.         int entry[MAX_STREAMS];
433.         int empty, stream_id = -1;
             ^
434. 
435.         idx_chunk = start_tag(pb, "idx1");

libavformat/avienc.c:433:9: Assignment
431.         AVIIentry* ie = 0, *tie;
432.         int entry[MAX_STREAMS];
433.         int empty, stream_id = -1;
             ^
434. 
435.         idx_chunk = start_tag(pb, "idx1");

libavformat/avienc.c:422:1: <Length trace>
420. }
421. 
422. static int avi_write_idx1(AVFormatContext *s)
     ^
423. {
424.     ByteIOContext *pb = s->pb;

libavformat/avienc.c:422:1: Parameter `s->streams[*]`
420. }
421. 
422. static int avi_write_idx1(AVFormatContext *s)
     ^
423. {
424.     ByteIOContext *pb = s->pb;

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