From b65394b644e76fc17abf001c15ad51f8a713b910 Mon Sep 17 00:00:00 2001 From: Vincent Rabaud Date: Thu, 11 Jan 2024 17:53:33 +0100 Subject: [PATCH] Fix AVM header parsing (#1931) --- src/obu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/obu.c b/src/obu.c index 4a9035a32c..9389e9d5bb 100644 --- a/src/obu.c +++ b/src/obu.c @@ -381,7 +381,7 @@ static avifBool parseAV2SequenceHeader(avifBits * bits, avifSequenceHeader * hea #if CONFIG_LR_IMPROVEMENTS avifBitsRead(bits, /*RESTORE_SWITCHABLE_TYPES=*/5); // lr_tools_disable_mask[0] if (avifBitsRead(bits, 1)) { - avifBitsRead(bits, /*RESTORE_SWITCHABLE_TYPES=*/5 - 1); // lr_tools_disable_mask[1] + avifBitsRead(bits, /*RESTORE_SWITCHABLE_TYPES=*/5 - 1 - 1); // lr_tools_disable_mask[1] } #endif }