mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
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
This commit is contained in:
parent
a5ecd69ec1
commit
0b52626eb0
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user