diff options
author | alex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-10-09 22:32:30 +0000 |
---|---|---|
committer | alex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-10-09 22:32:30 +0000 |
commit | a31340614beb52e718b1dbc853cd507452c444f2 (patch) | |
tree | cea17c08e9bfea3be21a8e2a9806760da2b624cd | |
parent | 697d692f4c053ed1e71e61edb0d9eda8b45da318 (diff) | |
download | mpv-a31340614beb52e718b1dbc853cd507452c444f2.tar.bz2 mpv-a31340614beb52e718b1dbc853cd507452c444f2.tar.xz |
some missing formats
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11070 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | libmpcodecs/vf_scale.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libmpcodecs/vf_scale.c b/libmpcodecs/vf_scale.c index 2290b31db5..2d1a5572f7 100644 --- a/libmpcodecs/vf_scale.c +++ b/libmpcodecs/vf_scale.c @@ -129,6 +129,7 @@ static int config(struct vf_instance_s* vf, // calculate the missing parameters: switch(best) { case IMGFMT_YUY2: /* YUY2 needs w rounded to 2 */ + case IMGFMT_UYVY: if(vf->priv->w==-3) vf->priv->w=(vf->priv->h*width/height+1)&~1; else if(vf->priv->w==-2) vf->priv->w=(vf->priv->h*d_width/d_height+1)&~1; if(vf->priv->w<0) vf->priv->w=width; else @@ -137,6 +138,8 @@ static int config(struct vf_instance_s* vf, if(vf->priv->h==-2) vf->priv->h=vf->priv->w*d_height/d_width; break; case IMGFMT_YV12: /* YV12 needs w & h rounded to 2 */ + case IMGFMT_I420: + case IMGFMT_IYUV: if(vf->priv->w==-3) vf->priv->w=(vf->priv->h*width/height+1)&~1; else if(vf->priv->w==-2) vf->priv->w=(vf->priv->h*d_width/d_height+1)&~1; if(vf->priv->w<0) vf->priv->w=width; else |