Commit 0b52626e authored by Reimar Döffinger's avatar Reimar Döffinger

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
parent a5ecd69e
...@@ -1239,7 +1239,7 @@ static int wma_decode_superframe(AVCodecContext *avctx, ...@@ -1239,7 +1239,7 @@ static int wma_decode_superframe(AVCodecContext *avctx,
goto fail; goto fail;
q = s->last_superframe + s->last_superframe_len; q = s->last_superframe + s->last_superframe_len;
len = bit_offset; len = bit_offset;
while (len > 0) { while (len > 7) {
*q++ = (get_bits)(&s->gb, 8); *q++ = (get_bits)(&s->gb, 8);
len -= 8; len -= 8;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment