Browse Source

Do not read full byte when less than 8 bits are still to be read.

Does not make a difference with any of my samples, but current
code does not make much sense.

Originally committed as revision 5533 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Reimar Döffinger 19 years ago
parent
commit
0b52626eb0
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/wmadec.c

+ 1
- 1
libavcodec/wmadec.c View File

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


Loading…
Cancel
Save