Commit 7ead8cf0 authored by Thomas Guillem's avatar Thomas Guillem Committed by Jean-Baptiste Kempf

android_window: fix subtitle clear area too big

This led to a memory corruption.
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent db98be9a
......@@ -834,8 +834,8 @@ static void SubtitleRegionToBounds(subpicture_t *subpicture,
new_bounds.left = r->i_x;
new_bounds.top = r->i_y;
new_bounds.right = r->fmt.i_width + r->i_x;
new_bounds.bottom = r->fmt.i_height + r->i_y;
new_bounds.right = r->fmt.i_visible_width + r->i_x;
new_bounds.bottom = r->fmt.i_visible_height + r->i_y;
if (r == &subpicture->p_region[0])
*p_out_bounds = new_bounds;
else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment