1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-16 12:17:12 +00:00

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

View File

@ -576,7 +576,7 @@ static void parse_trackentry(struct demuxer *demuxer,
track->codec_id = ""; 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; int len = entry->codec_private.len;
track->private_data = talloc_size(track, len + AV_LZO_INPUT_PADDING); track->private_data = talloc_size(track, len + AV_LZO_INPUT_PADDING);
memcpy(track->private_data, entry->codec_private.start, len); memcpy(track->private_data, entry->codec_private.start, len);