diff options
author | rfelker <rfelker@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-05-04 05:46:36 +0000 |
---|---|---|
committer | rfelker <rfelker@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-05-04 05:46:36 +0000 |
commit | 984b5895f46d760a5cd94cab68ed3c779672eb93 (patch) | |
tree | e3a6ce3fcba71429add0e6442127e2f0b982a5c9 | |
parent | ddbfc3b287356a33a599cc84ac9edd181d813ab7 (diff) |
better fix for i420/iyuv as suggested by arpi
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5967 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | libmpcodecs/vd_raw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libmpcodecs/vd_raw.c b/libmpcodecs/vd_raw.c index b218dcc11f..94db99f225 100644 --- a/libmpcodecs/vd_raw.c +++ b/libmpcodecs/vd_raw.c @@ -66,7 +66,7 @@ static mp_image_t* decode(sh_video_t *sh,void* data,int len,int flags){ if(mpi->bpp == 12 && mpi->flags&MP_IMGFLAG_YUV) { // Support for some common Planar YUV formats int cb=2, cr=1; - if (sh->format == IMGFMT_IYUV || sh->format == IMGFMT_I420) { + if(mpi->flags&MP_IMGFLAG_SWAPPED) { cb=1; cr=2; } mpi->planes[cb]=data+mpi->width*mpi->height; |