diff options
author | Vincent Penquerc'h <vincent.penquerch@collabora.co.uk> | 2014-04-09 18:31:31 +0100 |
---|---|---|
committer | Vincent Penquerc'h <vincent.penquerch@collabora.co.uk> | 2014-04-09 18:31:31 +0100 |
commit | e308986807032dd9cf00629376677de6fc5221d5 (patch) | |
tree | 90f1d41d1d36df1bb7dd4213b95325ec68c9e0ca /ext/kate | |
parent | 14dc7839cf071050eab89feb2c39fd00a0a44fe6 (diff) | |
download | gstreamer-plugins-bad-e308986807032dd9cf00629376677de6fc5221d5.tar.gz |
kate: fix implicit promotion to signed int breaking on largeish inputs
Coverity 1139858, 1139857
Diffstat (limited to 'ext/kate')
-rw-r--r-- | ext/kate/gstkatespu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/kate/gstkatespu.c b/ext/kate/gstkatespu.c index 951ef0f02..e256f8632 100644 --- a/ext/kate/gstkatespu.c +++ b/ext/kate/gstkatespu.c @@ -601,8 +601,8 @@ gst_kate_spu_decode_spu (GstKateEnc * ke, GstBuffer * buf, kate_region * kr, /* prefer relative sizes in case we're encoding for a different resolution that what the SPU was created for */ kr->metric = kate_millionths; - kr->x = 1000000 * x / ke->original_canvas_width; - kr->y = 1000000 * y / ke->original_canvas_height; + kr->x = 1000000 * (size_t) x / ke->original_canvas_width; + kr->y = 1000000 * (size_t) y / ke->original_canvas_height; kr->w = 1000000 * kb->width / ke->original_canvas_width; kr->h = 1000000 * kb->height / ke->original_canvas_height; } else { |