[MPlayer-dev-eng] [PATCH 2/3] video_out: compute right and bottom border in calc_src_dst_rects().

Nicolas George george at nsup.org
Sat Jan 10 13:37:26 CET 2015


---
 libvo/video_out.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libvo/video_out.c b/libvo/video_out.c
index 46e3a5f..fbf9009 100644
--- a/libvo/video_out.c
+++ b/libvo/video_out.c
@@ -458,6 +458,8 @@ void calc_src_dst_rects(int src_width, int src_height, struct vo_rect *src, stru
     if (borders) {
       borders->left = apply_border_pos(vo_dwidth,  scaled_width,  vo_border_pos_x);
       borders->top  = apply_border_pos(vo_dheight, scaled_height, vo_border_pos_y);
+      borders->right  = vo_dwidth  - scaled_width  - borders->left;
+      borders->bottom = vo_dheight - scaled_height - borders->top;
     }
     src_dst_split_scaling(src_width, vo_dwidth, scaled_width, vo_border_pos_x,
                           &src->left, &src->right, &dst->left, &dst->right);
-- 
2.1.4



More information about the MPlayer-dev-eng mailing list