diff options
author | wm4 <wm4@nowhere> | 2015-08-23 11:32:49 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-08-23 11:32:49 +0200 |
commit | fb5368b159effc91c3d3a7619892c49266c19407 (patch) | |
tree | 3f7ee8a8d93456cd88831220015e3078fc725f5a | |
parent | 5c3196d20bdacf32f922fef27de3d34e2549af07 (diff) |
vda, videotoolbox: fix broken condition in screenshot code
Fixes #2237.
-rw-r--r-- | video/out/gl_hwdec_vda.c | 2 |
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]; |