[Mplayer-cvslog] CVS: main/libmpcodecs vf_scale.c,1.7,1.8
Arpi of Ize
arpi at mplayerhq.hu
Sat Apr 20 01:29:43 CEST 2002
Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var/tmp.root/cvs-serv5656
Modified Files:
vf_scale.c
Log Message:
swscaler yv12 vs i420 workaround
Index: vf_scale.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/vf_scale.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- vf_scale.c 13 Apr 2002 19:14:31 -0000 1.7
+++ vf_scale.c 19 Apr 2002 23:29:41 -0000 1.8
@@ -93,8 +93,10 @@
if(vf->priv->ctx) freeSwsContext(vf->priv->ctx);
// new swscaler:
- vf->priv->ctx=getSwsContextFromCmdLine(width,height,outfmt,
- vf->priv->w,vf->priv->h,best);
+ vf->priv->ctx=getSwsContextFromCmdLine(width,height,
+ (outfmt==IMGFMT_I420 || outfmt==IMGFMT_IYUV)?IMGFMT_YV12:outfmt,
+ vf->priv->w,vf->priv->h,
+ (best==IMGFMT_I420 || best==IMGFMT_IYUV)?IMGFMT_YV12:best);
if(!vf->priv->ctx){
// error...
printf("Couldn't init SwScaler for this setup\n");
More information about the MPlayer-cvslog
mailing list