Browse Source

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>
tags/n4.4
Limin Wang 4 years ago
parent
commit
4cfe8123ea
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavcodec/nvenc_hevc.c

+ 1
- 0
libavcodec/nvenc_hevc.c View File

@@ -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,


Loading…
Cancel
Save