From f2dcdca0c2dc5f904323659b65b29a2b6f00fd88 Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 22 Jan 2013 13:28:31 +0100 Subject: video: move handling of -x/-y/-xy options to VO Now the calculations of the final display size are done after the filter chain. This makes the difference between display aspect ratio and window size a bit more clear, especially in the -xy case. With an empty filter chain, the behavior of the options should be the same, except that they don't affect vo_image and vo_lavc anymore. --- video/filter/vf_rotate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'video/filter/vf_rotate.c') diff --git a/video/filter/vf_rotate.c b/video/filter/vf_rotate.c index 1d80725ba3..9cdbafd94d 100644 --- a/video/filter/vf_rotate.c +++ b/video/filter/vf_rotate.c @@ -77,7 +77,7 @@ static int config(struct vf_instance *vf, int width, int height, struct mp_imgfmt_desc desc = mp_imgfmt_get_desc(outfmt); int a_w = MP_ALIGN_DOWN(width, desc.align_x); int a_h = MP_ALIGN_DOWN(height, desc.align_y); - vf_rescale_dsize(vf, &d_width, &d_height, width, height, a_w, a_h); + vf_rescale_dsize(&d_width, &d_height, width, height, a_w, a_h); return vf_next_config(vf, a_h, a_w, d_height, d_width, flags, outfmt); } -- cgit v1.2.3