From f8ea9ce75c96f3cafa9b3cf4e9e6cfdcc3a1f982 Mon Sep 17 00:00:00 2001 From: Steve Lhomme Date: Fri, 25 Jul 2025 14:37:18 +0200 Subject: [PATCH] EbmlHead: do not allow to have an infinite/unknown size It does not have [^1] unknownsizeallowed set to true (default to false) [^1]: https://www.rfc-editor.org/rfc/rfc8794.html#section-11.2.1 --- ebml/EbmlHead.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ebml/EbmlHead.h b/ebml/EbmlHead.h index b575b791..9768b5fa 100644 --- a/ebml/EbmlHead.h +++ b/ebml/EbmlHead.h @@ -46,6 +46,8 @@ DECLARE_EBML_MASTER(EbmlHead) EbmlHead(const EbmlHead & ElementToClone) = default; EBML_CONCRETE_CLASS(EbmlHead) + + bool SetSizeInfinite(bool finite = true) override { return !finite; } }; } // namespace libebml