From 2dd9dfdb9e1d57ade87bf416c42431610854d0b7 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Fri, 7 Nov 2014 09:31:28 -0800 Subject: [PATCH] Identify a byte as a dimension index. --- dump.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/dump.c b/dump.c index 158caace62..f8150b3894 100644 --- a/dump.c +++ b/dump.c @@ -388,7 +388,12 @@ dump_dim(void) match_u32_assert(2); if (!match_byte(0)) match_byte_assert(1); - get_u32(); + if (!match_byte(0)) + match_byte_assert(1); + match_byte_assert(1); + static int dim_indx = 0; + match_byte_assert(dim_indx++); + pos += 1; match_byte(0); match_byte(0); n_categories = get_u32(); -- 2.30.2