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
parent 7b0de4aa0e
commit d9aaf78530
1 changed files with 1 additions and 1 deletions

View File

@ -587,7 +587,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);