Skip to content

Commit 2929bf4

Browse files
committed
Ensure qtblend filter does not return an unexpectedly large frame
1 parent 050cd4c commit 2929bf4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/modules/qt/filter_qtblend.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,8 @@ static int filter_get_image(mlt_frame frame,
160160
transform.translate(rect.x, rect.y);
161161
opacity = rect.o;
162162
hasAlpha = rect.o < 1 || rect.x != 0 || rect.y != 0 || rect.w != *width || rect.h != *height
163-
|| rect.w / b_dar < *height || rect.h * b_dar < *width || b_width < *width
164-
|| b_height < *height;
163+
|| rect.w / b_dar < *height || rect.h * b_dar < *width || b_width != *width
164+
|| b_height != *height;
165165

166166
if (mlt_properties_get(properties, "rotation")) {
167167
double angle = mlt_properties_anim_get_double(properties, "rotation", position, length);

0 commit comments

Comments
 (0)