jbig2dec
Ralph Giles <[email protected]> Mon, 05 Aug 2002 14:43:28 -0700
| Newsgroups | gmane.comp.printing.ghostscript.jbig2dec.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/jbig2dec/jbig2dec
In directory usw-pr-cvs1:/tmp/cvs-serv1438
Modified Files:
jbig2dec.c
Log Message:
properly pass in the client params with the error callback when opening embedded streams
Index: jbig2dec.c
===================================================================
RCS file: /cvsroot/jbig2dec/jbig2dec/jbig2dec.c,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -r1.37 -r1.38
--- jbig2dec.c 20 Jul 2002 17:23:15 -0000 1.37
+++ jbig2dec.c 5 Aug 2002 21:43:26 -0000 1.38
@@ -193,7 +193,7 @@
error_callback(void *error_callback_data, const char *buf, Jbig2Severity severity,
int32_t seg_idx)
{
- jbig2dec_params_t *params = error_callback_data;
+ const jbig2dec_params_t *params = error_callback_data;
char *type;
char segment[22];
@@ -396,7 +396,7 @@
{
Jbig2GlobalCtx *global_ctx = jbig2_make_global_ctx(ctx);
ctx = jbig2_ctx_new(NULL, JBIG2_OPTIONS_EMBEDDED, global_ctx,
- error_callback, NULL);
+ error_callback, ¶ms);
for (;;)
{
int n_bytes = fread(buf, 1, sizeof(buf), f_page);