diff options
author | Limin Wang <lance.lmwang@gmail.com> | 2020-08-21 19:22:32 +0800 |
---|---|---|
committer | Limin Wang <lance.lmwang@gmail.com> | 2020-09-03 21:30:01 +0800 |
commit | 4cfe8123ea13aa94a61409dc27fa27e521e2340e (patch) | |
tree | e037b299ac17e42463c99724cadf146936d5b837 /libavcodec | |
parent | 5de8e897b1585fce973214532cf06cd98750f715 (diff) | |
download | ffmpeg-4cfe8123ea13aa94a61409dc27fa27e521e2340e.tar.gz |
avcodec/nvenc_hevc: add ff_nvenc_encode_flush() for .flush
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>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/nvenc_hevc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/nvenc_hevc.c b/libavcodec/nvenc_hevc.c index 074975f78a..a1e2463944 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, |