Browse Source

alsdec.c: Also test 0 when checking rice decoder values.

Suggested-by: Thilo Borgmann
tags/n0.11
Carl Eugen Hoyos 14 years ago
parent
commit
396d2aecc5
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/alsdec.c

+ 1
- 1
libavcodec/alsdec.c View File

@@ -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;


Loading…
Cancel
Save