summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libavcodec/4xm.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/libavcodec/4xm.c b/libavcodec/4xm.c
index 36d9dc123a..2cecd4d2cf 100644
--- a/libavcodec/4xm.c
+++ b/libavcodec/4xm.c
@@ -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);