From 670c5e6ef8565e87cec005051fcd162b1b581add Mon Sep 17 00:00:00 2001 From: gbletr42 <150784815+gbletr42@users.noreply.github.com> Date: Sat, 23 Mar 2024 04:05:53 +0000 Subject: [PATCH] This is unnecessary We already check if we have no loss, and if we do have a loss but also no recovery, it will fail with Leopard_NeedMore, so this check isn't actually needed --- leopard.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/leopard.cpp b/leopard.cpp index a64387d..0c0847f 100644 --- a/leopard.cpp +++ b/leopard.cpp @@ -291,7 +291,7 @@ LEO_EXPORT LeopardResult leo_decode( } // Handle m = 1 case - if (recovery_count == 1 && recovery_got_count == 1) + if (recovery_count == 1) { DecodeM1( buffer_bytes,