diff options
author | Philip Langdale <philipl@overt.org> | 2019-12-20 15:34:33 -0800 |
---|---|---|
committer | Philip Langdale <philipl@overt.org> | 2020-01-08 19:20:36 -0800 |
commit | 3ea705767720033754e8d85566460390191ae27d (patch) | |
tree | 6a1e3ecef1311a5eb427e1ed42124f371208e9c5 /libavcodec/nvenc_hevc.c | |
parent | 94cdf82d53fe9be260dc6106634a9f9b218211bd (diff) |
nvenc: implement flush to help allow an encoder to be re-used
It can be useful to re-use an encoder instance when doing segmented
encodings, and this requires flushing the encoder at the start of
each segment.
Diffstat (limited to 'libavcodec/nvenc_hevc.c')
-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 c668b97f86..7c9b3848f1 100644 --- a/libavcodec/nvenc_hevc.c +++ b/libavcodec/nvenc_hevc.c @@ -198,6 +198,7 @@ AVCodec ff_hevc_nvenc_encoder = { .receive_packet = ff_nvenc_receive_packet, .encode2 = ff_nvenc_encode_frame, .close = ff_nvenc_encode_close, + .flush = ff_nvenc_encode_flush, .priv_data_size = sizeof(NvencContext), .priv_class = &hevc_nvenc_class, .defaults = defaults, |