X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fopenjp2%2Fmqc_inl.h;h=310a3287fd918dce3ab66e49e9f4e2706ccfa2de;hb=51a1dcaa6ed5713520dca36fc58cd9240c08b7ca;hp=095a9fcf0946140a57c84e715a19c81f4caacdb6;hpb=36dd87cea80ad56e0e3178221aa579a28f02a549;p=openjpeg.git diff --git a/src/lib/openjp2/mqc_inl.h b/src/lib/openjp2/mqc_inl.h index 095a9fcf..310a3287 100644 --- a/src/lib/openjp2/mqc_inl.h +++ b/src/lib/openjp2/mqc_inl.h @@ -36,8 +36,8 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#ifndef __MQC_INL_H -#define __MQC_INL_H +#ifndef OPJ_MQC_INL_H +#define OPJ_MQC_INL_H /* For internal use of opj_mqc_decode_macro() */ #define opj_mqc_mpsexchange_macro(d, curctx, a) \ @@ -109,6 +109,7 @@ static INLINE OPJ_UINT32 opj_mqc_raw_decode(opj_mqc_t *mqc) if (l_c > 0x8f) { \ c += 0xff00; \ ct = 8; \ + mqc->end_of_byte_stream_counter ++; \ } else { \ mqc->bp++; \ c += l_c << 9; \ @@ -156,7 +157,7 @@ static INLINE OPJ_UINT32 opj_mqc_raw_decode(opj_mqc_t *mqc) } #define DOWNLOAD_MQC_VARIABLES(mqc, curctx, c, a, ct) \ - register opj_mqc_state_t **curctx = mqc->curctx; \ + register const opj_mqc_state_t **curctx = mqc->curctx; \ register OPJ_UINT32 c = mqc->c; \ register OPJ_UINT32 a = mqc->a; \ register OPJ_UINT32 ct = mqc->ct @@ -192,4 +193,4 @@ Decode a symbol #define opj_mqc_decode(d, mqc) \ opj_mqc_decode_macro(d, mqc, mqc->curctx, mqc->a, mqc->c, mqc->ct) -#endif /* __MQC_INL_H */ +#endif /* OPJ_MQC_INL_H */