Commit e266e186 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '6abe7eda'

* commit '6abe7eda':
  ffv1: fix out-of-bounds read

The change should be harmless but theres no out of array access before
the change
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 198e55bf 6abe7eda
......@@ -166,7 +166,7 @@ static void find_best_state(uint8_t best_state[256][256],
best_len[k] = len;
best_state[i][k] = j;
}
for (m = 0; m < 256; m++)
for (m = 1; m < 256; m++)
if (occ[m]) {
newocc[ one_state[ m]] += occ[m] * p;
newocc[256 - one_state[256 - m]] += occ[m] * (1 - p);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment