summaryrefslogtreecommitdiffstats
path: root/mencoder.c
diff options
context:
space:
mode:
authoralex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-02-10 13:11:11 +0000
committeralex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-02-10 13:11:11 +0000
commit1c8c89ddae78ec74a379ef3873f691bef2761fe4 (patch)
treefa667fbafa8f1f8b36590f39228c0edcbb6a745c /mencoder.c
parentc7fb41804cdb5b230577deb37d5998019adb4123 (diff)
downloadmpv-1c8c89ddae78ec74a379ef3873f691bef2761fe4.tar.bz2
mpv-1c8c89ddae78ec74a379ef3873f691bef2761fe4.tar.xz
support swscaler for i420
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4640 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mencoder.c')
-rw-r--r--mencoder.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mencoder.c b/mencoder.c
index a46caa274b..f8973d06ce 100644
--- a/mencoder.c
+++ b/mencoder.c
@@ -579,7 +579,8 @@ 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 || out_fmt==IMGFMT_IYUV || out_fmt==IMGFMT_I420) &&
+ (vo_w!=0 || vo_h!=0))
{
scale_srcW= sh_video->disp_w;
scale_srcH= sh_video->disp_h;