diff options
author | mplayer-svn <svn@mplayerhq.hu> | 2011-11-22 19:31:29 +0000 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2012-08-03 01:34:43 +0200 |
commit | 7e2b159f022a9efb9b81d98cda0b64c69aa5a6b4 (patch) | |
tree | c3b1c5322bcc938a5f46af9edce8c519039db96b /libmpcodecs | |
parent | 94c34b95aa06b91aa70d2220c5a9c5d6649cde92 (diff) |
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
Diffstat (limited to 'libmpcodecs')
-rw-r--r-- | libmpcodecs/mp_image.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libmpcodecs/mp_image.c b/libmpcodecs/mp_image.c index 4e20dee119..b1cd9c81f8 100644 --- a/libmpcodecs/mp_image.c +++ b/libmpcodecs/mp_image.c @@ -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; |