mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 12:49:40 +00:00
videoconvert: Compare y offset with height, not width, when testing for overlap
This could have prevented images showing that should have when the source height is greater than its width. When width exceeds height, as is common, it probably only caused a miniscule amount of unnecessary work. I haven't tested.
This commit is contained in:
parent
5ac789408b
commit
0b898ab911
1 changed files with 2 additions and 2 deletions
|
@ -273,7 +273,7 @@ blend_##format_name (GstVideoFrame * srcframe, gint xpos, gint ypos, \
|
|||
ypos = 0; \
|
||||
} \
|
||||
/* If x or y offset are larger then the source it's outside of the picture */ \
|
||||
if (xoffset > src_width || yoffset > src_width) { \
|
||||
if (xoffset > src_width || yoffset > src_height) { \
|
||||
return; \
|
||||
} \
|
||||
\
|
||||
|
@ -518,7 +518,7 @@ blend_##format_name (GstVideoFrame * srcframe, gint xpos, gint ypos, \
|
|||
ypos = 0; \
|
||||
} \
|
||||
/* If x or y offset are larger then the source it's outside of the picture */ \
|
||||
if (xoffset > src_width || yoffset > src_width) { \
|
||||
if (xoffset > src_width || yoffset > src_height) { \
|
||||
return; \
|
||||
} \
|
||||
\
|
||||
|
|
Loading…
Reference in a new issue