Commit 85a3d20d authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit 'f52edef3'

* commit 'f52edef3':
  smacker: fix an off by one in huff.length computation
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents a4a2e894 f52edef3
......@@ -257,7 +257,7 @@ static int smacker_decode_header_tree(SmackVContext *smk, GetBitContext *gb, int
ctx.recode2 = tmp2.values;
ctx.last = last;
huff.length = ((size + 3) >> 2) + 3;
huff.length = ((size + 3) >> 2) + 4;
huff.maxlength = 0;
huff.current = 0;
huff.values = av_mallocz(huff.length * sizeof(int));
......
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