mirror of https://github.com/mpv-player/mpv
vda, videotoolbox: fix broken condition in screenshot code
Fixes #2237.
This commit is contained in:
parent
5c3196d20b
commit
fb5368b159
|
@ -87,7 +87,7 @@ static struct mp_image *download_image(struct mp_hwdec_ctx *ctx,
|
|||
struct mp_image *hw_image,
|
||||
struct mp_image_pool *swpool)
|
||||
{
|
||||
if (hw_image->imgfmt != IMGFMT_VDA || hw_image->imgfmt != IMGFMT_VIDEOTOOLBOX)
|
||||
if (hw_image->imgfmt != IMGFMT_VDA && hw_image->imgfmt != IMGFMT_VIDEOTOOLBOX)
|
||||
return NULL;
|
||||
|
||||
CVPixelBufferRef pbuf = (CVPixelBufferRef)hw_image->planes[3];
|
||||
|
|
Loading…
Reference in New Issue