summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libavcodec/wmadec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/wmadec.c b/libavcodec/wmadec.c
index f07fab34f8..227c9695ba 100644
--- a/libavcodec/wmadec.c
+++ b/libavcodec/wmadec.c
@@ -1239,7 +1239,7 @@ static int wma_decode_superframe(AVCodecContext *avctx,
goto fail;
q = s->last_superframe + s->last_superframe_len;
len = bit_offset;
- while (len > 0) {
+ while (len > 7) {
*q++ = (get_bits)(&s->gb, 8);
len -= 8;
}