demux_mkv: allow up to 256 MB of extradata to make broken files work

What the flying fuck?

Unfortunately, these are already in the wild.

CC: @mpv-player/stable
This commit is contained in:
wm4 2014-09-04 19:19:28 +02:00 committed by Alessandro Ghedini
parent 46437e96c6
commit 367665b4c4
1 changed files with 1 additions and 1 deletions

View File

@ -576,7 +576,7 @@ static void parse_trackentry(struct demuxer *demuxer,
track->codec_id = "";
}
if (entry->n_codec_private && entry->codec_private.len <= 0x1000000) {
if (entry->n_codec_private && entry->codec_private.len <= 0x10000000) {
int len = entry->codec_private.len;
track->private_data = talloc_size(track, len + AV_LZO_INPUT_PADDING);
memcpy(track->private_data, entry->codec_private.start, len);