Browse Source

wmaprodec; fix get_bits(0) case.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n0.11
Michael Niedermayer 14 years ago
parent
commit
b28c678ba8
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/wmaprodec.c

+ 1
- 1
libavcodec/wmaprodec.c View File

@@ -1130,7 +1130,7 @@ static int decode_subframe(WMAProDecodeCtx *s)
int num_fill_bits;
if (!(num_fill_bits = get_bits(&s->gb, 2))) {
int len = get_bits(&s->gb, 4);
num_fill_bits = get_bits(&s->gb, len) + 1;
num_fill_bits = (len ? get_bits(&s->gb, len) : 0) + 1;
}

if (num_fill_bits >= 0) {


Loading…
Cancel
Save