[FFmpeg-soc] [soc]: r768 - jpeg2000/aecdec.c

k.nowosad subversion at mplayerhq.hu
Tue Aug 14 12:58:32 CEST 2007


Author: k.nowosad
Date: Tue Aug 14 12:58:32 2007
New Revision: 768

Log:
added context initialization to arithmetic entropy decoder


Modified:
   jpeg2000/aecdec.c

Modified: jpeg2000/aecdec.c
==============================================================================
--- jpeg2000/aecdec.c	(original)
+++ jpeg2000/aecdec.c	Tue Aug 14 12:58:32 2007
@@ -75,6 +75,12 @@ static int exchange(AecState *aec, int l
 
 void ff_aec_initdec(AecState *aec, uint8_t *bp)
 {
+    bzero(aec->contexts, 19*sizeof(AecContext));
+    aec->contexts[AEC_CX_UNI].state = 46;
+    aec->contexts[AEC_CX_RL].state = 3;
+    aec->contexts[0].state = 4;
+    aec->curctx = aec->contexts;
+
     aec->bp = bp;
     aec->c = (*aec->bp ^ 0xff) << 16;
     bytein(aec);



More information about the FFmpeg-soc mailing list