mp_image: set chroma_x_shift for 1-plane YUV formats

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@34355 b3059339-0415-0410-9bf9-f77b7e298cf2
Author: reimar
This commit is contained in:
mplayer-svn 2011-11-22 19:31:29 +00:00 committed by wm4
parent 94c34b95aa
commit 7e2b159f02
1 changed files with 1 additions and 0 deletions

View File

@ -172,6 +172,7 @@ void mp_image_setfmt(mp_image_t* mpi,unsigned int out_fmt){
case IMGFMT_UYVY:
mpi->flags|=MP_IMGFLAG_SWAPPED;
case IMGFMT_YUY2:
mpi->chroma_x_shift = 1;
mpi->bpp=16;
mpi->num_planes=1;
return;