OSDN Git Service

4xm: drop unnecessary check
authorVittorio Giovara <vittorio.giovara@gmail.com>
Sun, 9 Nov 2014 07:48:40 +0000 (08:48 +0100)
committerVittorio Giovara <vittorio.giovara@gmail.com>
Tue, 11 Nov 2014 10:41:49 +0000 (11:41 +0100)
data_size is always >= 0 in this case.

CC: libav-stable@libav.org
Bug-Id: CID 1238788

libavcodec/4xm.c

index 36d9dc1..2cecd4d 100644 (file)
@@ -820,9 +820,6 @@ static int decode_frame(AVCodecContext *avctx, void *data,
         const int data_size  = buf_size - 20;
         CFrameBuffer *cfrm;
 
-        if (data_size < 0)
-            return AVERROR_INVALIDDATA;
-
         id         = AV_RL32(buf + 12);
         whole_size = AV_RL32(buf + 16);