Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-09-12 17:41:59 +0400
committerMichael Niedermayer <michaelni@gmx.at>2013-09-12 18:17:32 +0400
commitfbab9a7c226792fbbd4cd8c636782b62514f760c (patch)
tree0da64228ecb713515b1b1db616434388bad9e008 /libavcodec/smacker.c
parent59a08d193963ba3455b8c8b8a7b1b620e13b8e8f (diff)
avcodec/smacker: remove check that has become redundant
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/smacker.c')
-rw-r--r--libavcodec/smacker.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/libavcodec/smacker.c b/libavcodec/smacker.c
index b5712a6ea5..3f0e6c6748 100644
--- a/libavcodec/smacker.c
+++ b/libavcodec/smacker.c
@@ -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[1] == -1) ctx.last[1] = 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 ||
ctx.last[1] >= huff.length ||
ctx.last[2] >= huff.length) {