0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00

support swscaler for i420

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4640 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
alex 2002-02-10 13:11:11 +00:00
parent c7fb41804c
commit 1c8c89ddae

View File

@ -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;