From 6db942a8e6c5af61c333ee55cb862d13eb583264 Mon Sep 17 00:00:00 2001 From: michael Date: Sat, 1 Dec 2001 12:24:46 +0000 Subject: bugfix if only -x or only -y is used git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3241 b3059339-0415-0410-9bf9-f77b7e298cf2 --- mencoder.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'mencoder.c') diff --git a/mencoder.c b/mencoder.c index 936452f385..8473eb0d71 100644 --- a/mencoder.c +++ b/mencoder.c @@ -379,10 +379,12 @@ if(i>=CODECS_MAX_OUTFMT){ } sh_video->outfmtidx=i; -if(out_fmt==IMGFMT_YV12 && vo_w!=0 && vo_h!=0) +if(out_fmt==IMGFMT_YV12 && (vo_w!=0 || vo_h!=0)) { scale_srcW= sh_video->disp_w; scale_srcH= sh_video->disp_h; + if(!vo_w) vo_w=sh_video->disp_w; + if(!vo_h) vo_h=sh_video->disp_h; } else { -- cgit v1.2.3