Browse Source

ffv1: fix out-of-bounds read

CC: libav-stable@libav.org
Bug-Id: CID 1047234
tags/n2.5
Vittorio Giovara 11 years ago
parent
commit
6abe7edabb
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/ffv1enc.c

+ 1
- 1
libavcodec/ffv1enc.c View File

@@ -71,7 +71,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);


Loading…
Cancel
Save