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

android_window: check subtitles bounds

(fixes #13350)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 93ff2c22
......@@ -878,8 +878,15 @@ static void SubtitleGetDirtyBounds(vout_display_t *vd,
}
}
/* default is full picture */
if (!b_found) {
if (!b_found
|| p_out_bounds->left < 0
|| p_out_bounds->right < 0
|| (unsigned int) p_out_bounds->right > sys->p_sub_pic->format.i_width
|| p_out_bounds->bottom < 0
|| p_out_bounds->top < 0
|| (unsigned int) p_out_bounds->top > sys->p_sub_pic->format.i_height)
{
/* default is full picture */
p_out_bounds->left = 0;
p_out_bounds->top = 0;
p_out_bounds->right = sys->p_sub_pic->format.i_width;
......
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