[FFmpeg-cvslog] avcodec/smacker: remove check that has become redundant

Michael Niedermayer git at videolan.org
Thu Sep 12 16:24:37 CEST 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Sep 12 15:41:59 2013 +0200| [fbab9a7c226792fbbd4cd8c636782b62514f760c] | committer: Michael Niedermayer

avcodec/smacker: remove check that has become redundant

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=fbab9a7c226792fbbd4cd8c636782b62514f760c
---

 libavcodec/smacker.c |    5 -----
 1 file changed, 5 deletions(-)

diff --git a/libavcodec/smacker.c b/libavcodec/smacker.c
index b5712a6..3f0e6c6 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) {



More information about the ffmpeg-cvslog mailing list