Mercurial > mplayer.hg
changeset 3240:fbdb14138675
bugfix if only -x or only -y is used
author | michael |
---|---|
date | Sat, 01 Dec 2001 12:24:46 +0000 |
parents | ef38487113b1 |
children | 71075e783b04 |
files | mencoder.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mencoder.c Sat Dec 01 11:30:22 2001 +0000 +++ b/mencoder.c Sat Dec 01 12:24:46 2001 +0000 @@ -379,10 +379,12 @@ } 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 {