diff options
| author | Antonin Descampe <antonin@gmail.com> | 2007-02-28 14:27:20 +0000 |
|---|---|---|
| committer | Antonin Descampe <antonin@gmail.com> | 2007-02-28 14:27:20 +0000 |
| commit | e5c5d1064ec154ebcf7d976b1070dd0da3d95ee4 (patch) | |
| tree | 62b2078287583060cced0e14fcb66eccc21588c3 | |
| parent | 2fb6da8d857e51da4dd3d55eb891a5af71dff316 (diff) | |
fixed a bug in context numerotation that prevented the RESET switch to work correctly : mqc_reset_enc in mqc.c
| -rw-r--r-- | ChangeLog | 1 | ||||
| -rw-r--r-- | libopenjpeg/mqc.c | 6 |
2 files changed, 4 insertions, 3 deletions
@@ -6,6 +6,7 @@ What's New for OpenJPEG + : added February 28, 2007 +* [antonin] fixed a bug in context numerotation that prevented the RESET switch to work correctly : mqc_reset_enc in mqc.c * [Fod] Corrected codec Makefile by adding the compilation of "compat/getopt.c" February 27, 2007 diff --git a/libopenjpeg/mqc.c b/libopenjpeg/mqc.c index 19a389ed..e6dd0079 100644 --- a/libopenjpeg/mqc.c +++ b/libopenjpeg/mqc.c @@ -439,9 +439,9 @@ int mqc_bypass_flush_enc(opj_mqc_t *mqc) { void mqc_reset_enc(opj_mqc_t *mqc) { mqc_resetstates(mqc); - mqc_setstate(mqc, 18, 0, 46); - mqc_setstate(mqc, 0, 0, 3); - mqc_setstate(mqc, 1, 0, 4); + mqc_setstate(mqc, T1_CTXNO_UNI, 0, 46); + mqc_setstate(mqc, T1_CTXNO_AGG, 0, 3); + mqc_setstate(mqc, T1_CTXNO_ZC, 0, 4); } int mqc_restart_enc(opj_mqc_t *mqc) { |
