From fe919d9fb35247fd47a50539da61a0d2f231212a Mon Sep 17 00:00:00 2001 From: Julio Barba Date: Wed, 13 Mar 2024 17:17:24 -0400 Subject: [PATCH] React to new padding in mainline v2.0 --- Source/API/EbSvtAv1Enc.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/API/EbSvtAv1Enc.h b/Source/API/EbSvtAv1Enc.h index 8d8f2d4e7..c43db068c 100644 --- a/Source/API/EbSvtAv1Enc.h +++ b/Source/API/EbSvtAv1Enc.h @@ -937,10 +937,6 @@ typedef struct EbSvtAv1EncConfiguration { /* New parameters can go in under this line. Also deduct the size of the parameter */ /* from the padding array */ - - /*Add 128 Byte Padding to Struct to avoid changing the size of the public configuration struct*/ - uint8_t padding[128]; - /* @brief Boost low variance regions according to a fast-growing formula 0: no boost 1: mild boost @@ -972,6 +968,10 @@ typedef struct EbSvtAv1EncConfiguration { * Default is 0 (off). */ int8_t sharpness; + + /*Add 128 Byte Padding to Struct to avoid changing the size of the public configuration struct*/ + uint8_t padding[128 - 3 * sizeof(uint8_t) - sizeof(int8_t)]; + } EbSvtAv1EncConfiguration; /**