diff mbox series

[FFmpeg-devel] avcodec/nvenc_hevc: add ff_nvenc_encode_flush() for .flush

Message ID 1598446632-17135-1-git-send-email-lance.lmwang@gmail.com
State Accepted
Commit 4cfe8123ea13aa94a61409dc27fa27e521e2340e
Headers show
Series [FFmpeg-devel] avcodec/nvenc_hevc: add ff_nvenc_encode_flush() for .flush | expand

Checks

Context Check Description
andriy/default pending
andriy/make success Make finished
andriy/make_fate success Make fate finished

Commit Message

Limin Wang Aug. 26, 2020, 12:57 p.m. UTC
From: Limin Wang <lance.lmwang@gmail.com>

for the .capabilities have AV_CODEC_CAP_ENCODER_FLUSH, so it's better to add it.

Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
---
 libavcodec/nvenc_hevc.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/libavcodec/nvenc_hevc.c b/libavcodec/nvenc_hevc.c
index 074975f..a1e2463 100644
--- a/libavcodec/nvenc_hevc.c
+++ b/libavcodec/nvenc_hevc.c
@@ -202,6 +202,7 @@  AVCodec ff_nvenc_hevc_encoder = {
     .init           = nvenc_old_init,
     .receive_packet = ff_nvenc_receive_packet,
     .close          = ff_nvenc_encode_close,
+    .flush          = ff_nvenc_encode_flush,
     .priv_data_size = sizeof(NvencContext),
     .priv_class     = &nvenc_hevc_class,
     .defaults       = defaults,