forked from FFmpeg/FFmpeg
hwcontext_vaapi: Fix build with libva 2.0
vaExportSurfaceHandle() wasn't included in the 2.0 release. Fixes ticket #6828.
This commit is contained in:
parent
3f6294a53d
commit
1ef4af2d49
1 changed files with 1 additions and 1 deletions
|
@ -1076,7 +1076,7 @@ static void vaapi_unmap_to_drm(AVHWFramesContext *dst_fc,
|
||||||
static int vaapi_map_to_drm(AVHWFramesContext *hwfc, AVFrame *dst,
|
static int vaapi_map_to_drm(AVHWFramesContext *hwfc, AVFrame *dst,
|
||||||
const AVFrame *src, int flags)
|
const AVFrame *src, int flags)
|
||||||
{
|
{
|
||||||
#if CONFIG_VAAPI_1
|
#if VA_CHECK_VERSION(1, 1, 0)
|
||||||
AVVAAPIDeviceContext *hwctx = hwfc->device_ctx->hwctx;
|
AVVAAPIDeviceContext *hwctx = hwfc->device_ctx->hwctx;
|
||||||
VASurfaceID surface_id;
|
VASurfaceID surface_id;
|
||||||
VAStatus vas;
|
VAStatus vas;
|
||||||
|
|
Loading…
Add table
Reference in a new issue