Browse Source

r3d: fix an invalid read introduced in 6bf4c1d

tags/n3.0
Anton Khirnov 9 years ago
parent
commit
5bc223b15d
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/r3d.c

+ 1
- 1
libavformat/r3d.c View File

@@ -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;


Loading…
Cancel
Save