diff options
author | Mark Thompson <sw@jkqxz.net> | 2020-04-13 16:33:17 +0100 |
---|---|---|
committer | Mark Thompson <sw@jkqxz.net> | 2020-04-26 18:38:25 +0100 |
commit | 344e6c3ff1b47279ffb360aba3f5e10183bc4eb4 (patch) | |
tree | 718a1f66b445e56ef65c7831c941d00acd7644a5 /libavcodec/vaapi_encode.c | |
parent | 5a1ff449071fefa7913858fbe2d084f698443e57 (diff) | |
download | ffmpeg-344e6c3ff1b47279ffb360aba3f5e10183bc4eb4.tar.gz |
lavc/vaapi_encode: Add hardware config metadata
These encoders all accept VAAPI surfaces in a hardware frames context.
Diffstat (limited to 'libavcodec/vaapi_encode.c')
-rw-r--r-- | libavcodec/vaapi_encode.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/vaapi_encode.c b/libavcodec/vaapi_encode.c index 8ff720e395..f551967ad6 100644 --- a/libavcodec/vaapi_encode.c +++ b/libavcodec/vaapi_encode.c @@ -27,6 +27,11 @@ #include "vaapi_encode.h" #include "avcodec.h" +const AVCodecHWConfigInternal *ff_vaapi_encode_hw_configs[] = { + HW_CONFIG_ENCODER_FRAMES(VAAPI, VAAPI), + NULL, +}; + static const char * const picture_type_name[] = { "IDR", "I", "P", "B" }; static int vaapi_encode_make_packed_header(AVCodecContext *avctx, |