mirror of
https://github.com/google/liblc3.git
synced 2026-05-30 00:17:01 +00:00
hr mode: Allow half bitrate (fallback operation), and remove lower bound on decoding.
This commit is contained in:
@@ -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 --- */
|
||||
|
||||
Reference in New Issue
Block a user