diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2006-06-27 16:13:01 +0400 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2006-06-27 16:13:01 +0400 |
commit | 0b52626eb0dc53907c72efb8d4f1e837fe8f63d0 (patch) | |
tree | cdc1691498ade29676444cf47eb62cfb4c4f0e47 /libavcodec/wmadec.c | |
parent | a5ecd69ec191f6f8e26af9ad3e35e784a34335cb (diff) |
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
Diffstat (limited to 'libavcodec/wmadec.c')
-rw-r--r-- | libavcodec/wmadec.c | 2 |
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; } |