mirror of
https://github.com/mpv-player/mpv
synced 2025-03-02 04:11:03 +00:00
better fix for i420/iyuv as suggested by arpi
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5967 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
ddbfc3b287
commit
984b5895f4
@ -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) {
|
if(mpi->bpp == 12 && mpi->flags&MP_IMGFLAG_YUV) {
|
||||||
// Support for some common Planar YUV formats
|
// Support for some common Planar YUV formats
|
||||||
int cb=2, cr=1;
|
int cb=2, cr=1;
|
||||||
if (sh->format == IMGFMT_IYUV || sh->format == IMGFMT_I420) {
|
if(mpi->flags&MP_IMGFLAG_SWAPPED) {
|
||||||
cb=1; cr=2;
|
cb=1; cr=2;
|
||||||
}
|
}
|
||||||
mpi->planes[cb]=data+mpi->width*mpi->height;
|
mpi->planes[cb]=data+mpi->width*mpi->height;
|
||||||
|
Loading…
Reference in New Issue
Block a user