diff options
author | Sebastian Rasmussen <sebras@gmail.com> | 2018-04-07 00:12:15 +0800 |
---|---|---|
committer | Sebastian Rasmussen <sebras@gmail.com> | 2018-04-10 13:29:43 +0800 |
commit | d38507b3d62d9d0710b1c5122af5db9730167082 (patch) | |
tree | eaec6b9f487e9a73665fa6dae6ba43cda1a9a757 /jbig2dec/jbig2_huffman.c | |
parent | c0f89bd215d700339429da4375a4eaf89445f872 (diff) | |
download | ghostpdl-d38507b3d62d9d0710b1c5122af5db9730167082.tar.gz |
jbig2dec: Fix some cosmetic typos in code/headers/tests.
Diffstat (limited to 'jbig2dec/jbig2_huffman.c')
-rw-r--r-- | jbig2dec/jbig2_huffman.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/jbig2dec/jbig2_huffman.c b/jbig2dec/jbig2_huffman.c index 8889ea3d3..54b513cc0 100644 --- a/jbig2dec/jbig2_huffman.c +++ b/jbig2dec/jbig2_huffman.c @@ -132,7 +132,7 @@ jbig2_dump_huffman_table(const Jbig2HuffmanTable *table) int i; int table_size = (1 << table->log_table_size); - fprintf(stderr, "huffman table %p (log_table_size=%d, %d entries, entryies=%p):\n", table, table->log_table_size, table_size, table->entries); + fprintf(stderr, "huffman table %p (log_table_size=%d, %d entries, entries=%p):\n", table, table->log_table_size, table_size, table->entries); for (i = 0; i < table_size; i++) { fprintf(stderr, "%6d: PREFLEN=%d, RANGELEN=%d, ", i, table->entries[i].PREFLEN, table->entries[i].RANGELEN); if (table->entries[i].flags & JBIG2_HUFFMAN_FLAGS_ISEXT) { @@ -532,11 +532,11 @@ jbig2_table(Jbig2Ctx *ctx, Jbig2Segment *segment, const byte *segment_data) /* B.2 2) (B.2.2) The lower bound of the first table line in the encoded table */ const int32_t HTLOW = jbig2_get_int32(segment_data + 1); - /* B.2 3) (B.2.3) One larger than the upeer bound of + /* B.2 3) (B.2.3) One larger than the upper bound of the last normal table line in the encoded table */ const int32_t HTHIGH = jbig2_get_int32(segment_data + 5); - /* estimated number of lines int this table, used for alloacting memory for lines */ + /* estimated number of lines int this table, used for allocating memory for lines */ const size_t lines_max = (segment->data_length * 8 - HTPS * (HTOOB ? 3 : 2)) / (HTPS + HTRS) + (HTOOB ? 3 : 2); /* points to a first table line data */ @@ -718,7 +718,7 @@ main(int argc, char **argv) ws.get_next_word = test_get_word; hs = jbig2_huffman_new(ctx, &ws); - printf("testing jbig2 huffmann decoding..."); + printf("testing jbig2 huffman decoding..."); printf("\t(should be 8 5 (oob) 8)\n"); { |