aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2012-05-05 13:19:35 +0200
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2012-05-05 13:19:35 +0200
commit396d2aecc5a21779a9df57f4f472e5f1ae3188c3 (patch)
treebf7a581d61f3ecb0cbd9ad622ab371978138258d
parent849172882c117fad2b649ae6207f010735a9f2de (diff)
downloadffmpeg-396d2aecc5a21779a9df57f4f472e5f1ae3188c3.tar.gz
alsdec.c: Also test 0 when checking rice decoder values.
Suggested-by: Thilo Borgmann
-rw-r--r--libavcodec/alsdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/alsdec.c b/libavcodec/alsdec.c
index 625d111c05..e5208fc2bf 100644
--- a/libavcodec/alsdec.c
+++ b/libavcodec/alsdec.c
@@ -651,7 +651,7 @@ static int read_var_block_data(ALSDecContext *ctx, ALSBlockData *bd)
for (k = 1; k < sub_blocks; k++)
s[k] = s[k - 1] + decode_rice(gb, 0);
}
- for (k = 1; k < sub_blocks; k++)
+ for (k = 0; k < sub_blocks; k++)
if (s[k] > 32) {
av_log(avctx, AV_LOG_ERROR, "k invalid for rice code.\n");
return -1;