Hi,
> +            int cb=2, cr=1;
> +            if (sh->format == IMGFMT_IYUV || sh->format == IMGFMT_I420) {
you could/should use if(mpi->flags&MP_IMGFLAGS_SWAPPED) here
A'rpi / Astral & ESP-team
--
Developer of MPlayer, the Movie Player for Linux - http://www.MPlayerHQ.hu