mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
Merge commit 'f52edef30197735bfb937e9e723ab1e7b31165c6'
* commit 'f52edef30197735bfb937e9e723ab1e7b31165c6': smacker: fix an off by one in huff.length computation Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
85a3d20da5
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user