Browse Source

vout: android: fix possible buffer underwrite with spus

pull/70/head
Thomas Guillem 8 years ago
parent
commit
4ef28fc0df
  1. 4
      modules/video_output/android/display.c

4
modules/video_output/android/display.c

@ -823,6 +823,10 @@ static void SubtitleRegionToBounds(subpicture_t *subpicture,
new_bounds.left = r->i_x;
new_bounds.top = r->i_y;
if (new_bounds.left < 0)
new_bounds.left = 0;
if (new_bounds.top < 0)
new_bounds.top = 0;
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])

Loading…
Cancel
Save