aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2018-12-24 01:14:49 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2018-12-25 00:44:17 +0100
commit7efe84aebd1f40045b46e84ca1dd3fbe6f178244 (patch)
tree2eeff3d207a0475fcf7515a579fd489551ec86c0
parent6a8cc8696339f9c494da9aa54068c7dc07f75298 (diff)
downloadffmpeg-7efe84aebd1f40045b46e84ca1dd3fbe6f178244.tar.gz
avcodec/lagarith: Remove duplicate check
Reviewed-by: Derek Buitenhuis <derek.buitenhuis@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--libavcodec/lagarith.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/libavcodec/lagarith.c b/libavcodec/lagarith.c
index 5763504b71..59169be5de 100644
--- a/libavcodec/lagarith.c
+++ b/libavcodec/lagarith.c
@@ -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 ||