vlc | branch: master | Thomas Guillem <[email protected]> | Fri Nov 28 15:34:13 2014 +0100| [7ead8cf09e2d78d4592dcc4070e6b8d69af8112c] | committer: Jean-Baptiste Kempf
android_window: fix subtitle clear area too big This led to a memory corruption. Signed-off-by: Jean-Baptiste Kempf <[email protected]> > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7ead8cf09e2d78d4592dcc4070e6b8d69af8112c --- modules/video_output/android/android_window.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/video_output/android/android_window.c b/modules/video_output/android/android_window.c index b08e00f..e584a54 100644 --- a/modules/video_output/android/android_window.c +++ b/modules/video_output/android/android_window.c @@ -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 { _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
