1
0
mirror of https://github.com/mpv-player/mpv synced 2025-04-24 20:29:53 +00:00

check depth for direct rendering

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5417 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
arpi 2002-03-31 09:28:17 +00:00
parent 0b14d76862
commit 83d1ae68c0

View File

@ -538,6 +538,7 @@ static uint32_t get_image(mp_image_t *mpi)
{
if (zoomFlag ||
!IMGFMT_IS_BGR(mpi->imgfmt) ||
(IMGFMT_BGR_DEPTH(mpi->imgfmt) != vo_depthonscreen) ||
((mpi->type != MP_IMGTYPE_STATIC) && (mpi->type != MP_IMGTYPE_TEMP)) ||
(mpi->flags & MP_IMGFLAG_PLANAR) ||
(mpi->flags & MP_IMGFLAG_YUV) ||