mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-27 18:02:11 +00:00
cinepak: remove redundant coordinate checks
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
parent
867b496681
commit
a4009c6a9a
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user