mirror of https://github.com/mpv-player/mpv
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:
parent
94c34b95aa
commit
7e2b159f02
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue