[FFmpeg-cvslog] cinepak: remove redundant coordinate checks

Michael Niedermayer git at videolan.org
Wed Nov 16 20:58:26 CET 2011


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Nov 16 17:25:39 2011 +0100| [7056f13a89da1d1f4afd5c6342e7ca6824777125] | committer: Michael Niedermayer

cinepak: remove redundant coordinate checks

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

 libavcodec/cinepak.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavcodec/cinepak.c b/libavcodec/cinepak.c
index a5458ca..8ada456 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;
 



More information about the ffmpeg-cvslog mailing list