Priority: normal
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
static code_table_t table[256];
static int init_done = 0;
-/* global variable */
-static int sonix_unknown = 0;
-
/*
sonix_decompress_init
=====================
table[i].unk = unk;
}
- sonix_unknown = 0;
init_done = 1;
}
/* update bit position */
bitpos += table[code].len;
- /* update code statistics */
- sonix_unknown += table[code].unk;
+ /* Skip unknown codes (most likely they indicate
+ a change of the delta's the various codes encode) */
+ if (table[code].unk)
+ continue;
/* calculate pixel value */
val = table[code].val;