diff options
author | Anton Khirnov <anton@khirnov.net> | 2015-12-13 07:13:37 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2015-12-14 12:12:42 +0100 |
commit | 5bc223b15d064e328ff90b0241fa1191f1d2786d (patch) | |
tree | f73c2c53b9cf894a77762f24b6185cb3f02a1b81 /libavformat | |
parent | 64f8c439fd663fec4d57ac21af572d498fe21f7a (diff) | |
download | ffmpeg-5bc223b15d064e328ff90b0241fa1191f1d2786d.tar.gz |
r3d: fix an invalid read introduced in 6bf4c1d
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/r3d.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/r3d.c b/libavformat/r3d.c index fb066a65be..9db1d4bbfd 100644 --- a/libavformat/r3d.c +++ b/libavformat/r3d.c @@ -352,7 +352,7 @@ static int r3d_read_packet(AVFormatContext *s, AVPacket *pkt) case MKTAG('R','E','D','A'): if (!r3d->audio_channels) return -1; - if (s->streams[1]->discard == AVDISCARD_ALL) + if (s->nb_streams >= 2 && s->streams[1]->discard == AVDISCARD_ALL) goto skip; if (!(err = r3d_read_reda(s, pkt, &atom))) return 0; |