[vlc-commits] magnify: correctly set i_visible_width/ i_visible_height after dimension scaling
Felix Abecassis
git at videolan.org
Wed Mar 5 12:03:52 CET 2014
vlc | branch: master | Felix Abecassis <felix.abecassis at gmail.com> | Tue Mar 4 16:44:25 2014 +0100| [a4d43caa434a9834ae6c29d3925a2c5fe4520a50] | committer: Felix Abecassis
magnify: correctly set i_visible_width/i_visible_height after dimension scaling
Fix #10744
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a4d43caa434a9834ae6c29d3925a2c5fe4520a50
---
modules/video_filter/magnify.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/modules/video_filter/magnify.c b/modules/video_filter/magnify.c
index 2a33206..9df90a9 100644
--- a/modules/video_filter/magnify.c
+++ b/modules/video_filter/magnify.c
@@ -190,8 +190,8 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
/* */
fmt_in = p_filter->fmt_in.video;
- fmt_in.i_width = (fmt_in.i_width * ZOOM_FACTOR / o_zoom) & ~1;
- fmt_in.i_height = (fmt_in.i_height * ZOOM_FACTOR / o_zoom) & ~1;
+ fmt_in.i_width = fmt_in.i_visible_width = (fmt_in.i_width * ZOOM_FACTOR / o_zoom) & ~1;
+ fmt_in.i_height = fmt_in.i_visible_height = (fmt_in.i_height * ZOOM_FACTOR / o_zoom) & ~1;
/* */
fmt_out = p_filter->fmt_out.video;
@@ -215,8 +215,8 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
/* image visualization */
fmt_out = p_filter->fmt_out.video;
- fmt_out.i_width = (fmt_out.i_width /VIS_ZOOM) & ~1;
- fmt_out.i_height = (fmt_out.i_height/VIS_ZOOM) & ~1;
+ fmt_out.i_width = fmt_out.i_visible_width = (fmt_out.i_width /VIS_ZOOM) & ~1;
+ fmt_out.i_height = fmt_out.i_visible_height = (fmt_out.i_height/VIS_ZOOM) & ~1;
p_converted = image_Convert( p_sys->p_image, p_pic,
&p_pic->format, &fmt_out );
More information about the vlc-commits
mailing list