diff options
Diffstat (limited to 'mencoder.c')
-rw-r--r-- | mencoder.c | 4 |
1 files changed, 3 insertions, 1 deletions
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 { |