palette: Fix an illegal read

Change-Id: I71649f0a85d98b96efd08c8a9e3ee7372fd7d327
This commit is contained in:
Alex Converse 2015-03-16 16:47:38 -07:00
parent 961fe77e70
commit 7ca745a2df

View File

@ -71,7 +71,7 @@ int run_lengh_encoding(uint8_t *seq, int n, uint16_t *runs, int max_run) {
runs[l++] = symbol; runs[l++] = symbol;
this_run = 1; this_run = 1;
i++; i++;
while (seq[i] == symbol && i < n) { while (i < n && seq[i] == symbol) {
i++; i++;
this_run++; this_run++;
} }