diff options
author | wm4 <wm4@nowhere> | 2020-01-17 15:08:46 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2020-01-17 15:08:46 +0100 |
commit | 7ed6b5f44d755bffce76fc9cc2196364484609bd (patch) | |
tree | 44a40d7aa75fe969a701981236c7545d93f066ad /video/out/hwdec | |
parent | 40832773c183d9e9e475c4807d3bb7866c5bbad9 (diff) | |
download | mpv-7ed6b5f44d755bffce76fc9cc2196364484609bd.tar.bz2 mpv-7ed6b5f44d755bffce76fc9cc2196364484609bd.tar.xz |
vo_gpu: hwdec_vaapi: set correct hw_imgfmt value
As documented on struct mp_hwdec_ctx, hw_imgfmt specifies the hardware
surface wrapper format for which supported_formats is valid. If this was
not set, f_hwtransfer ignored supported_formats, and assumed all formats
were supported.
Diffstat (limited to 'video/out/hwdec')
-rw-r--r-- | video/out/hwdec/hwdec_vaapi.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/video/out/hwdec/hwdec_vaapi.c b/video/out/hwdec/hwdec_vaapi.c index a7a772cc0f..3ed9602400 100644 --- a/video/out/hwdec/hwdec_vaapi.c +++ b/video/out/hwdec/hwdec_vaapi.c @@ -157,6 +157,7 @@ static int init(struct ra_hwdec *hw) return -1; } + p->ctx->hwctx.hw_imgfmt = IMGFMT_VAAPI; p->ctx->hwctx.supported_formats = p->formats; p->ctx->hwctx.driver_name = hw->driver->name; hwdec_devices_add(hw->devs, &p->ctx->hwctx); |