[Ffmpeg-cvslog] r5533 - trunk/libavcodec/wmadec.c
reimar
subversion
Tue Jun 27 14:13:01 CEST 2006
Author: reimar
Date: Tue Jun 27 14:13:01 2006
New Revision: 5533
Modified:
trunk/libavcodec/wmadec.c
Log:
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.
Modified: trunk/libavcodec/wmadec.c
==============================================================================
--- trunk/libavcodec/wmadec.c (original)
+++ trunk/libavcodec/wmadec.c Tue Jun 27 14:13:01 2006
@@ -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;
}
More information about the ffmpeg-cvslog
mailing list