diff options
author | James Almer <jamrial@gmail.com> | 2021-03-12 20:50:42 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2021-03-17 13:44:16 -0300 |
commit | a1cd4191e0685256eafe47dd4f34237cfdb5f6fb (patch) | |
tree | 703b8f5b9abca1a7c8c66d8f11e54369706a398e /libavcodec/vaapi_encode_vp9.c | |
parent | 238e08b12e2e2da55d86a113259c4444e9541955 (diff) | |
download | ffmpeg-a1cd4191e0685256eafe47dd4f34237cfdb5f6fb.tar.gz |
avcodec/vaapi_encode: use AVCodecContext.get_encode_buffer()
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/vaapi_encode_vp9.c')
-rw-r--r-- | libavcodec/vaapi_encode_vp9.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/vaapi_encode_vp9.c b/libavcodec/vaapi_encode_vp9.c index 4f3b55ed2d..0e1c52c92a 100644 --- a/libavcodec/vaapi_encode_vp9.c +++ b/libavcodec/vaapi_encode_vp9.c @@ -289,7 +289,8 @@ AVCodec ff_vp9_vaapi_encoder = { .receive_packet = &ff_vaapi_encode_receive_packet, .close = &ff_vaapi_encode_close, .priv_class = &vaapi_encode_vp9_class, - .capabilities = AV_CODEC_CAP_DELAY | AV_CODEC_CAP_HARDWARE, + .capabilities = AV_CODEC_CAP_DELAY | AV_CODEC_CAP_HARDWARE | + AV_CODEC_CAP_DR1, .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, .defaults = vaapi_encode_vp9_defaults, .pix_fmts = (const enum AVPixelFormat[]) { |