libavformat/r3d.c:355: error: Buffer Overrun L3
  Offset: 1 Size: [0, 2147483631].

libavformat/r3d.c:334:1: <Length trace>
332. }
333. 
334. static int r3d_read_packet(AVFormatContext *s, AVPacket *pkt)
     ^
335. {
336.     R3DContext *r3d = s->priv_data;

libavformat/r3d.c:334:1: Parameter `*s->streams`
332. }
333. 
334. static int r3d_read_packet(AVFormatContext *s, AVPacket *pkt)
     ^
335. {
336.     R3DContext *r3d = s->priv_data;

libavformat/r3d.c:355:17: Array access: Offset: 1 Size: [0, 2147483631]
353.             if (!r3d->audio_channels)
354.                 return -1;
355.             if (s->streams[1]->discard == AVDISCARD_ALL)
                     ^
356.                 goto skip;
357.             if (!(err = r3d_read_reda(s, pkt, &atom)))

static int r3d_read_packet(AVFormatContext *s, AVPacket *pkt)
{
    R3DContext *r3d = s->priv_data;
    Atom atom;
    int err = 0;
    while (!err) {
        if (read_atom(s, &atom) < 0) {
            err = -1;
            break;
        }
        switch (atom.tag) {
        case MKTAG('R','E','D','V'):
            if (s->streams[0]->discard == AVDISCARD_ALL)
                goto skip;
            if (!(err = r3d_read_redv(s, pkt, &atom)))
                return 0;
            break;
        case MKTAG('R','E','D','A'):
            if (!r3d->audio_channels)
                return -1;
            if (s->streams[1]->discard == AVDISCARD_ALL)
                goto skip;
            if (!(err = r3d_read_reda(s, pkt, &atom)))
                return 0;
            break;
        default:
        skip:
            avio_skip(s->pb, atom.size-8);
        }
    }
    return err;
}
["static int r3d_read_packet(AVFormatContext *s, AVPacket *pkt)\n{\n    R3DContext *r3d = s->priv_data;\n    Atom atom;\n    int err = 0;\n    while (!err) {\n        if (read_atom(s, &atom) < 0) {\n            err = -1;\n            break;\n        }\n        switch (atom.tag) {\n        case MKTAG('R','E','D','V'):\n            if (s->streams[0]->discard == AVDISCARD_ALL)\n                goto skip;\n            if (!(err = r3d_read_redv(s, pkt, &atom)))\n                return 0;\n            break;\n        case MKTAG('R','E','D','A'):\n            if (!r3d->audio_channels)\n                return -1;\n            if (s->streams[1]->discard == AVDISCARD_ALL)\n                goto skip;\n            if (!(err = r3d_read_reda(s, pkt, &atom)))\n                return 0;\n            break;\n        default:\n        skip:\n            avio_skip(s->pb, atom.size-8);\n        }\n    }\n    return err;\n}"]