ttmlrender: Fix integer handling issue identified by coverity

Fixes CID #1405132.
This commit is contained in:
Chris Bass 2017-04-19 14:00:47 +01:00 committed by Sebastian Dröge
parent bb8b27bee4
commit 3fbd12b141

View file

@ -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;
}