You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avcodec/smacker: remove check that has become redundant
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -279,11 +279,6 @@ static int smacker_decode_header_tree(SmackVContext *smk, GetBitContext *gb, int
|
|||||||
if(ctx.last[0] == -1) ctx.last[0] = huff.current++;
|
if(ctx.last[0] == -1) ctx.last[0] = huff.current++;
|
||||||
if(ctx.last[1] == -1) ctx.last[1] = huff.current++;
|
if(ctx.last[1] == -1) ctx.last[1] = huff.current++;
|
||||||
if(ctx.last[2] == -1) ctx.last[2] = huff.current++;
|
if(ctx.last[2] == -1) ctx.last[2] = huff.current++;
|
||||||
if(huff.current > huff.length){
|
|
||||||
ctx.last[0] = ctx.last[1] = ctx.last[2] = 1;
|
|
||||||
av_log(smk->avctx, AV_LOG_ERROR, "bigtree damaged\n");
|
|
||||||
return AVERROR_INVALIDDATA;
|
|
||||||
}
|
|
||||||
if (ctx.last[0] >= huff.length ||
|
if (ctx.last[0] >= huff.length ||
|
||||||
ctx.last[1] >= huff.length ||
|
ctx.last[1] >= huff.length ||
|
||||||
ctx.last[2] >= huff.length) {
|
ctx.last[2] >= huff.length) {
|
||||||
|
Reference in New Issue
Block a user