diff options
author | Chris Bass <floobleflam@gmail.com> | 2017-04-19 14:00:47 +0100 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2017-04-19 18:28:31 +0100 |
commit | 3fbd12b14140a5ee8e9aa8dcae47174525a5bf5b (patch) | |
tree | a1aa1a6c76b4cf319fcd2a0ad69d7e2a4a412f69 /ext/ttml | |
parent | bb8b27bee464c35ecf7a8d29e65ee84595d4abaa (diff) | |
download | gstreamer-plugins-bad-3fbd12b14140a5ee8e9aa8dcae47174525a5bf5b.tar.gz |
ttmlrender: Fix integer handling issue identified by coverity
Fixes CID #1405132.
Diffstat (limited to 'ext/ttml')
-rw-r--r-- | ext/ttml/gstttmlrender.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/ttml/gstttmlrender.c b/ext/ttml/gstttmlrender.c index ee1cb974d..b6a63b5bf 100644 --- a/ext/ttml/gstttmlrender.c +++ b/ext/ttml/gstttmlrender.c @@ -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; } |