projects
/
platform
/
upstream
/
gst-plugins-bad.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb8b27b
)
ttmlrender: Fix integer handling issue identified by coverity
author
Chris Bass
<floobleflam@gmail.com>
Wed, 19 Apr 2017 13:00:47 +0000
(14:00 +0100)
committer
Sebastian Dröge
<sebastian@centricular.com>
Wed, 19 Apr 2017 17:28:31 +0000
(18:28 +0100)
Fixes CID #1405132.
ext/ttml/gstttmlrender.c
patch
|
blob
|
history
diff --git
a/ext/ttml/gstttmlrender.c
b/ext/ttml/gstttmlrender.c
index
ee1cb97
..
b6a63b5
100644
(file)
--- 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;
}