diff options
author | Vittorio Giovara <vittorio.giovara@gmail.com> | 2014-11-09 08:48:40 +0100 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2014-11-11 11:41:49 +0100 |
commit | 0e1ebfebc8326069732795698a82f3fea0742a54 (patch) | |
tree | 19b54d46fbc31fd771246ada93a362140184e12b /libavcodec/4xm.c | |
parent | 7c61e4b1a0f9e9f5b7bc08879e9e101eb90b19ea (diff) | |
download | ffmpeg-0e1ebfebc8326069732795698a82f3fea0742a54.tar.gz |
4xm: drop unnecessary check
data_size is always >= 0 in this case.
CC: libav-stable@libav.org
Bug-Id: CID 1238788
Diffstat (limited to 'libavcodec/4xm.c')
-rw-r--r-- | libavcodec/4xm.c | 3 |
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); |