summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-08-23 11:32:49 +0200
committerwm4 <wm4@nowhere>2015-08-23 11:32:49 +0200
commitfb5368b159effc91c3d3a7619892c49266c19407 (patch)
tree3f7ee8a8d93456cd88831220015e3078fc725f5a /video
parent5c3196d20bdacf32f922fef27de3d34e2549af07 (diff)
downloadmpv-fb5368b159effc91c3d3a7619892c49266c19407.tar.bz2
mpv-fb5368b159effc91c3d3a7619892c49266c19407.tar.xz
vda, videotoolbox: fix broken condition in screenshot code
Fixes #2237.
Diffstat (limited to 'video')
-rw-r--r--video/out/gl_hwdec_vda.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/gl_hwdec_vda.c b/video/out/gl_hwdec_vda.c
index 668a20f440..c257781885 100644
--- a/video/out/gl_hwdec_vda.c
+++ b/video/out/gl_hwdec_vda.c
@@ -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];