projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9f410af
)
image: fix wrong check for rect bounds in copy_image().
author
Wind Yuan
<feng.yuan@intel.com>
Sat, 27 Apr 2013 07:15:49 +0000
(15:15 +0800)
committer
Gwenole Beauchesne
<gwenole.beauchesne@intel.com>
Fri, 14 Jun 2013 11:50:47 +0000
(13:50 +0200)
gst-libs/gst/vaapi/gstvaapiimage.c
patch
|
blob
|
history
diff --git
a/gst-libs/gst/vaapi/gstvaapiimage.c
b/gst-libs/gst/vaapi/gstvaapiimage.c
index 72c04ff3ae76b0b61cce640041c9705b8d2f7790..e08ae658dc4e213a6cc5ebd43f0b674df3dd0aaa 100644
(file)
--- a/
gst-libs/gst/vaapi/gstvaapiimage.c
+++ b/
gst-libs/gst/vaapi/gstvaapiimage.c
@@
-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 {