From a4009c6a9adc9ea38eb56967b6a5e933451ae545 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Wed, 16 Nov 2011 17:25:39 +0100 Subject: cinepak: remove redundant coordinate checks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michael Niedermayer Signed-off-by: Martin Storsjö --- libavcodec/cinepak.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libavcodec/cinepak.c') diff --git a/libavcodec/cinepak.c b/libavcodec/cinepak.c index a858d6e866..8ae1bb3f2b 100644 --- a/libavcodec/cinepak.c +++ b/libavcodec/cinepak.c @@ -269,8 +269,8 @@ static int cinepak_decode_strip (CinepakContext *s, int chunk_id, chunk_size; /* coordinate sanity checks */ - if (strip->x1 >= s->width || strip->x2 > s->width || - strip->y1 >= s->height || strip->y2 > s->height || + if (strip->x2 > s->width || + strip->y2 > s->height || strip->x1 >= strip->x2 || strip->y1 >= strip->y2) return -1; -- cgit v1.2.3