Author: k.nowosad
Date: Fri Aug 17 22:03:41 2007
New Revision: 924
Log:
corrected flushing the bitstream
Modified:
jpeg2000/j2kdec.c
Modified: jpeg2000/j2kdec.c
==============================================================================
--- jpeg2000/j2kdec.c (original)
+++ jpeg2000/j2kdec.c Fri Aug 17 22:03:41 2007
@@ -157,10 +157,10 @@ static int get_bits(J2kDecoderContext *s
void j2k_flush(J2kDecoderContext *s)
{
- if (s->bit_index != 8){
- s->bit_index = 8;
+ if (*s->buf == 0xff)
s->buf++;
- }
+ s->bit_index = 8;
+ s->buf++;
}
#if 0
void printcomp(J2kComponent *comp)
_______________________________________________
FFmpeg-soc mailing list
[email protected]
http://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-soc