4xm: drop unnecessary check
data_size is always >= 0 in this case. CC: libav-stable@libav.org Bug-Id: CID 1238788
This commit is contained in:
parent
7c61e4b1a0
commit
0e1ebfebc8
@ -820,9 +820,6 @@ static int decode_frame(AVCodecContext *avctx, void *data,
|
|||||||
const int data_size = buf_size - 20;
|
const int data_size = buf_size - 20;
|
||||||
CFrameBuffer *cfrm;
|
CFrameBuffer *cfrm;
|
||||||
|
|
||||||
if (data_size < 0)
|
|
||||||
return AVERROR_INVALIDDATA;
|
|
||||||
|
|
||||||
id = AV_RL32(buf + 12);
|
id = AV_RL32(buf + 12);
|
||||||
whole_size = AV_RL32(buf + 16);
|
whole_size = AV_RL32(buf + 16);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user