mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-24 16:22:37 +00:00
cafdec: allow larger ALAC magic cookie
It already skips any extra bytes at the end, and apparently there are some samples in the wild with larger 'kuki' chunks.
This commit is contained in:
parent
4cd22b7738
commit
1749e12f45
@ -124,7 +124,7 @@ static int read_kuki_chunk(AVFormatContext *s, int64_t size)
|
||||
#define ALAC_HEADER 36
|
||||
#define ALAC_NEW_KUKI 24
|
||||
uint8_t preamble[12];
|
||||
if (size < ALAC_NEW_KUKI || size > ALAC_PREAMBLE + ALAC_HEADER) {
|
||||
if (size < ALAC_NEW_KUKI) {
|
||||
av_log(s, AV_LOG_ERROR, "invalid ALAC magic cookie\n");
|
||||
avio_skip(pb, size);
|
||||
return AVERROR_INVALIDDATA;
|
||||
|
Loading…
Reference in New Issue
Block a user