aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/ac3dsp.c
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2011-05-28 14:40:16 -0400
committerJustin Ruggles <justin.ruggles@gmail.com>2011-05-28 14:41:21 -0400
commitdc0ad40de2b0d6995eb842e56b22f9096bd539ff (patch)
treeb83345fafb54405d141931c0d5bdccf8388fd454 /libavcodec/ac3dsp.c
parentedfa89b2608889626bb6c6b177283b6fd16716cf (diff)
downloadffmpeg-dc0ad40de2b0d6995eb842e56b22f9096bd539ff.tar.gz
ac3dsp: fix loop condition in ac3_update_bap_counts_c()
Diffstat (limited to 'libavcodec/ac3dsp.c')
-rw-r--r--libavcodec/ac3dsp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/ac3dsp.c b/libavcodec/ac3dsp.c
index de58f3ab26..8ce5f8d2c5 100644
--- a/libavcodec/ac3dsp.c
+++ b/libavcodec/ac3dsp.c
@@ -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]]++;
}