Commit dc0ad40d authored by Justin Ruggles's avatar Justin Ruggles
Browse files

ac3dsp: fix loop condition in ac3_update_bap_counts_c()

parent edfa89b2
......@@ -131,7 +131,7 @@ static void ac3_bit_alloc_calc_bap_c(int16_t *mask, int16_t *psd,
static void ac3_update_bap_counts_c(uint16_t mant_cnt[16], uint8_t *bap,
int len)
{
while (len-- >= 0)
while (len-- > 0)
mant_cnt[bap[len]]++;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment