mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-09 14:14:39 +02:00
wav: update size check for ds64
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
e472f0ea5a
commit
c9614bb22c
@ -323,7 +323,7 @@ static int wav_read_header(AVFormatContext *s,
|
|||||||
if (avio_rl32(pb) != MKTAG('d', 's', '6', '4'))
|
if (avio_rl32(pb) != MKTAG('d', 's', '6', '4'))
|
||||||
return -1;
|
return -1;
|
||||||
size = avio_rl32(pb);
|
size = avio_rl32(pb);
|
||||||
if (size < 16)
|
if (size < 24)
|
||||||
return -1;
|
return -1;
|
||||||
avio_rl64(pb); /* RIFF size */
|
avio_rl64(pb); /* RIFF size */
|
||||||
data_size = avio_rl64(pb);
|
data_size = avio_rl64(pb);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user