[MPlayer-cvslog] r37355 - trunk/libvo/video_out.c

cigaes subversion at mplayerhq.hu
Mon Jan 12 13:09:19 CET 2015


Author: cigaes
Date: Mon Jan 12 13:09:19 2015
New Revision: 37355

Log:
video_out: compute right and bottom border in calc_src_dst_rects().

Modified:
   trunk/libvo/video_out.c

Modified: trunk/libvo/video_out.c
==============================================================================
--- trunk/libvo/video_out.c	Mon Jan 12 13:09:18 2015	(r37354)
+++ trunk/libvo/video_out.c	Mon Jan 12 13:09:19 2015	(r37355)
@@ -458,6 +458,8 @@ void calc_src_dst_rects(int src_width, i
     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);


More information about the MPlayer-cvslog mailing list