[vlc-devel] [PATCH] magnify: correctly set i_visible_width/i_visible_height after dimension scaling

Felix Abecassis felix.abecassis at gmail.com
Tue Mar 4 16:47:34 CET 2014


Fix #10744
---
 modules/video_filter/magnify.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/modules/video_filter/magnify.c b/modules/video_filter/magnify.c
index 2a33206..1577f8f 100644
--- a/modules/video_filter/magnify.c
+++ b/modules/video_filter/magnify.c
@@ -192,6 +192,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_visible_width = fmt_in.i_width;
+        fmt_in.i_visible_height = fmt_in.i_height;
 
         /* */
         fmt_out = p_filter->fmt_out.video;
@@ -217,6 +219,8 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
         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_visible_width = fmt_out.i_width;
+        fmt_out.i_visible_height = fmt_out.i_height;
         p_converted = image_Convert( p_sys->p_image, p_pic,
                                      &p_pic->format, &fmt_out );
 
-- 
1.8.3.2




More information about the vlc-devel mailing list