mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
r3d: fix an invalid read introduced in 6bf4c1d
This commit is contained in:
parent
64f8c439fd
commit
5bc223b15d
@ -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…
x
Reference in New Issue
Block a user