mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 17:20:36 +00:00
image: fix wrong check for rect bounds in copy_image().
This commit is contained in:
parent
9f410af4a3
commit
b3525c824a
1 changed files with 2 additions and 2 deletions
|
@ -923,9 +923,9 @@ copy_image(
|
|||
|
||||
if (rect) {
|
||||
if (rect->x >= src_image->width ||
|
||||
rect->x + src_image->width > src_image->width ||
|
||||
rect->x + rect->width > src_image->width ||
|
||||
rect->y >= src_image->height ||
|
||||
rect->y + src_image->height > src_image->height)
|
||||
rect->y + rect->height > src_image->height)
|
||||
return FALSE;
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Reference in a new issue