palette: Fix an illegal read
Change-Id: I71649f0a85d98b96efd08c8a9e3ee7372fd7d327
This commit is contained in:
parent
961fe77e70
commit
7ca745a2df
@ -71,7 +71,7 @@ int run_lengh_encoding(uint8_t *seq, int n, uint16_t *runs, int max_run) {
|
||||
runs[l++] = symbol;
|
||||
this_run = 1;
|
||||
i++;
|
||||
while (seq[i] == symbol && i < n) {
|
||||
while (i < n && seq[i] == symbol) {
|
||||
i++;
|
||||
this_run++;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user