From ad87019bf1ec7540a43e9a56acaf7adb32c917ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomas=20H=C3=A4rdin?= Date: Mon, 13 Feb 2023 10:55:06 +0100 Subject: [PATCH] lavf/mxfenc: Bump EDIT_UNITS_PER_BODY 250 is ridiculously low and leads to excessive partitions and allocations. This change also makes muxed files smaller, and makes demuxing them faster. --- libavformat/mxfenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/mxfenc.c b/libavformat/mxfenc.c index a29d678098..124b5a6b41 100644 --- a/libavformat/mxfenc.c +++ b/libavformat/mxfenc.c @@ -67,7 +67,7 @@ extern const FFOutputFormat ff_mxf_opatom_muxer; #define IS_D10(s) ((s)->oformat == &ff_mxf_d10_muxer.p) #define IS_OPATOM(s) ((s)->oformat == &ff_mxf_opatom_muxer.p) -#define EDIT_UNITS_PER_BODY 250 +#define EDIT_UNITS_PER_BODY (1 << 20) #define KAG_SIZE 512 typedef struct MXFIndexEntry { -- 2.30.2