summaryrefslogtreecommitdiffstats
path: root/libass/ass_render.c
diff options
context:
space:
mode:
Diffstat (limited to 'libass/ass_render.c')
-rw-r--r--libass/ass_render.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libass/ass_render.c b/libass/ass_render.c
index 138c11a..f95479c 100644
--- a/libass/ass_render.c
+++ b/libass/ass_render.c
@@ -2812,7 +2812,7 @@ static void add_background(RenderContext *state, EventImages *event_images)
bottom = FFMINMAX(bottom, 0, render_priv->height);
int w = right - left;
int h = bottom - top;
- if (w < 1 || h < 1 || w > FFMIN(INT_MAX, SIZE_MAX) / h)
+ if (w < 1 || h < 1)
return;
void *nbuffer = ass_aligned_alloc(1, w * h, false);
if (!nbuffer)