From 988cfeae2751f8fceff5f24b870159c53b0e3a58 Mon Sep 17 00:00:00 2001 From: vaclav Date: Thu, 7 Aug 2025 17:46:10 +0200 Subject: [PATCH] port MR No. 303 --- lib_enc/acelp_core_enc.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib_enc/acelp_core_enc.c b/lib_enc/acelp_core_enc.c index 55d21983d..41a729dce 100644 --- a/lib_enc/acelp_core_enc.c +++ b/lib_enc/acelp_core_enc.c @@ -167,7 +167,10 @@ ivas_error acelp_core_enc( { st->Nb_ACELP_frames = 0; } - st->Nb_ACELP_frames++; + if ( st->Nb_ACELP_frames < MAX16B ) + { + st->Nb_ACELP_frames++; + } if ( st->L_frame == L_FRAME ) { -- GitLab