[FFmpeg-cvslog] ac3dsp: fix loop condition in ac3_update_bap_counts_c()
Justin Ruggles
git at videolan.org
Sun May 29 03:46:46 CEST 2011
ffmpeg | branch: master | Justin Ruggles <justin.ruggles at gmail.com> | Sat May 28 14:40:16 2011 -0400| [dc0ad40de2b0d6995eb842e56b22f9096bd539ff] | committer: Justin Ruggles
ac3dsp: fix loop condition in ac3_update_bap_counts_c()
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=dc0ad40de2b0d6995eb842e56b22f9096bd539ff
---
libavcodec/ac3dsp.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavcodec/ac3dsp.c b/libavcodec/ac3dsp.c
index de58f3a..8ce5f8d 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]]++;
}
More information about the ffmpeg-cvslog
mailing list