hr mode: Allow half bitrate (fallback operation), and remove lower bound on decoding.

This commit is contained in:
Antoine Soulier
2024-01-23 15:33:08 -08:00
parent d9973b605b
commit 43d62807a3
2 changed files with 9 additions and 8 deletions
+2 -2
View File
@@ -744,8 +744,8 @@ int lc3_decode(struct lc3_decoder *decoder, const void *in, int nbytes,
if (!decoder)
return -1;
if (in && (nbytes < lc3_min_frame_bytes(decoder->dt, decoder->sr) ||
nbytes > lc3_max_frame_bytes(decoder->dt, decoder->sr) ))
if (in && (nbytes < LC3_MIN_FRAME_BYTES ||
nbytes > lc3_max_frame_bytes(decoder->dt, decoder->sr) ))
return -1;
/* --- Processing --- */