[FFmpeg-cvslog] avcodec/lagarith: Remove duplicate check

Michael Niedermayer git at videolan.org
Tue Dec 25 01:45:27 EET 2018


ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Mon Dec 24 01:14:49 2018 +0100| [7efe84aebd1f40045b46e84ca1dd3fbe6f178244] | committer: Michael Niedermayer

avcodec/lagarith: Remove duplicate check

Reviewed-by: Derek Buitenhuis <derek.buitenhuis at gmail.com>
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7efe84aebd1f40045b46e84ca1dd3fbe6f178244
---

 libavcodec/lagarith.c | 3 ---
 1 file changed, 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 ||



More information about the ffmpeg-cvslog mailing list