diff options
Diffstat (limited to 'libmpcodecs/vd_raw.c')
-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; |