mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-04 06:08:26 +02:00
avcodec/lagarith: Remove duplicate check
Reviewed-by: Derek Buitenhuis <derek.buitenhuis@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
6a8cc86963
commit
7efe84aebd
@ -669,9 +669,6 @@ static int lag_decode_frame(AVCodecContext *avctx,
|
||||
|
||||
if ((ret = ff_thread_get_buffer(avctx, &frame, 0)) < 0)
|
||||
return ret;
|
||||
if (buf_size <= offset_ry || buf_size <= offset_gu || buf_size <= offset_bv) {
|
||||
return AVERROR_INVALIDDATA;
|
||||
}
|
||||
|
||||
if (offset_ry >= buf_size ||
|
||||
offset_gu >= buf_size ||
|
||||
|
Loading…
x
Reference in New Issue
Block a user