ttmlrender: Fix integer handling issue identified by coverity
Fixes CID #1405132.
This commit is contained in:
parent
bb8b27bee4
commit
3fbd12b141
@ -1985,7 +1985,7 @@ gst_ttml_render_draw_text (GstTtmlRender * render, const gchar * text,
|
||||
ret->width = buf_width;
|
||||
ret->height = buf_height;
|
||||
ret->x = 0;
|
||||
ret->y = MAX (0, baseline_offset - (baseline - ink_rect.y));
|
||||
ret->y = MAX (0, (gint) baseline_offset - (baseline - ink_rect.y));
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user