mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 04:56:24 +00:00
kate: fix implicit promotion to signed int breaking on largeish inputs
Coverity 1139858, 1139857
This commit is contained in:
parent
14dc7839cf
commit
e308986807
1 changed files with 2 additions and 2 deletions
|
@ -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
|
/* prefer relative sizes in case we're encoding for a different resolution
|
||||||
that what the SPU was created for */
|
that what the SPU was created for */
|
||||||
kr->metric = kate_millionths;
|
kr->metric = kate_millionths;
|
||||||
kr->x = 1000000 * x / ke->original_canvas_width;
|
kr->x = 1000000 * (size_t) x / ke->original_canvas_width;
|
||||||
kr->y = 1000000 * y / ke->original_canvas_height;
|
kr->y = 1000000 * (size_t) y / ke->original_canvas_height;
|
||||||
kr->w = 1000000 * kb->width / ke->original_canvas_width;
|
kr->w = 1000000 * kb->width / ke->original_canvas_width;
|
||||||
kr->h = 1000000 * kb->height / ke->original_canvas_height;
|
kr->h = 1000000 * kb->height / ke->original_canvas_height;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue