changeset 3362:c43fcf831f7c libavcodec

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.
author reimar
date Tue, 27 Jun 2006 12:13:01 +0000
parents bcaa5113e311
children 4c5227327416
files wmadec.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/wmadec.c	Tue Jun 27 12:09:58 2006 +0000
+++ b/wmadec.c	Tue Jun 27 12:13:01 2006 +0000
@@ -1239,7 +1239,7 @@
                 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;
             }