diff options
author | James Almer <jamrial@gmail.com> | 2021-03-12 20:49:44 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2021-03-17 13:42:54 -0300 |
commit | b615e8a7826daf9279bff9ee0b629840f05b218c (patch) | |
tree | 626d0c8292cc5b7a95face6fc9b7f2f5b4d9ffc7 /libavcodec/amfenc_h264.c | |
parent | 8f1580c31a3cfb9994bda7b3914a97e09b9f1d48 (diff) |
avcodec/amfenc: use AVCodecContext.get_encode_buffer()
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/amfenc_h264.c')
-rw-r--r-- | libavcodec/amfenc_h264.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/amfenc_h264.c b/libavcodec/amfenc_h264.c index 622ee85946..fe30d7f11d 100644 --- a/libavcodec/amfenc_h264.c +++ b/libavcodec/amfenc_h264.c @@ -388,7 +388,8 @@ AVCodec ff_h264_amf_encoder = { .priv_data_size = sizeof(AmfContext), .priv_class = &h264_amf_class, .defaults = defaults, - .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, .pix_fmts = ff_amf_pix_fmts, .wrapper_name = "amf", |