mirror of https://github.com/mpv-player/mpv
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:
parent
46437e96c6
commit
367665b4c4
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue