[FFmpeg-soc] [soc]: r924 - jpeg2000/j2kdec.c
k.nowosad
subversion at mplayerhq.hu
Fri Aug 17 22:03:41 CEST 2007
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)
More information about the FFmpeg-soc
mailing list