From 2fa8fe4ad37a22bd6b7a41e4e456c33e529372dd Mon Sep 17 00:00:00 2001 From: reimar Date: Mon, 6 Sep 2004 21:26:46 +0000 Subject: [PATCH] do not modify d_width and d_height when -xy option was given, otherwise -xy has no effect with e.g. vo_gl git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13269 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpcodecs/vf_scale.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libmpcodecs/vf_scale.c b/libmpcodecs/vf_scale.c index c7ee7f2c05..899b095876 100644 --- a/libmpcodecs/vf_scale.c +++ b/libmpcodecs/vf_scale.c @@ -40,6 +40,7 @@ static struct vf_priv_s { extern int opt_screen_size_x; extern int opt_screen_size_y; +extern float screen_size_xy; //===========================================================================// @@ -232,7 +233,7 @@ static int config(struct vf_instance_s* vf, break; } } - if(!opt_screen_size_x && !opt_screen_size_y){ + if(!opt_screen_size_x && !opt_screen_size_y && !(screen_size_xy >= 0.001)){ // Compute new d_width and d_height, preserving aspect // while ensuring that both are >= output size in pixels. if (vf->priv->h * d_width > vf->priv->w * d_height) {