Commit a4d43caa authored by Felix Abecassis's avatar Felix Abecassis

magnify: correctly set i_visible_width/i_visible_height after dimension scaling

Fix #10744
parent 47a9e86e
......@@ -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 );
......
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