diff --git a/demux/ebml.c b/demux/ebml.c index 206a507a61..dbdfcc659b 100644 --- a/demux/ebml.c +++ b/demux/ebml.c @@ -604,8 +604,8 @@ int ebml_read_element(struct stream *s, struct ebml_parse_ctx *ctx, MP_MSG(ctx, msglevel, "EBML element with unknown length - unsupported\n"); return -1; } - if (length > (128 << 20)) { - MP_MSG(ctx, msglevel, "Refusing to read element over 128 MiB in size\n"); + if (length > (512 << 20)) { + MP_MSG(ctx, msglevel, "Element too big (%" PRIu64 " MiB) - skipping\n", length >> 20); return -1; } ctx->talloc_ctx = talloc_size(NULL, length);