aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/nvenc_h264.c
diff options
context:
space:
mode:
authorTimo Rothenpieler <timo@rothenpieler.org>2017-09-02 19:30:21 +0200
committerTimo Rothenpieler <timo@rothenpieler.org>2017-09-07 12:08:32 +0200
commita56d0497cbab6f9abf68f77f1b4fe16c4a53f101 (patch)
treedb6733138807721e57b31352ceacd735dd270dd8 /libavcodec/nvenc_h264.c
parentcf42f316c525a76680b8b2d3e68c61db71eaa50d (diff)
downloadffmpeg-a56d0497cbab6f9abf68f77f1b4fe16c4a53f101.tar.gz
avcodec/nvenc: migrate to new encode API
Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
Diffstat (limited to 'libavcodec/nvenc_h264.c')
-rw-r--r--libavcodec/nvenc_h264.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libavcodec/nvenc_h264.c b/libavcodec/nvenc_h264.c
index 9adbe9f909..c3b4bac749 100644
--- a/libavcodec/nvenc_h264.c
+++ b/libavcodec/nvenc_h264.c
@@ -164,6 +164,8 @@ AVCodec ff_nvenc_encoder = {
.type = AVMEDIA_TYPE_VIDEO,
.id = AV_CODEC_ID_H264,
.init = nvenc_old_init,
+ .send_frame = ff_nvenc_send_frame,
+ .receive_packet = ff_nvenc_receive_packet,
.encode2 = ff_nvenc_encode_frame,
.close = ff_nvenc_encode_close,
.priv_data_size = sizeof(NvencContext),
@@ -190,6 +192,8 @@ AVCodec ff_nvenc_h264_encoder = {
.type = AVMEDIA_TYPE_VIDEO,
.id = AV_CODEC_ID_H264,
.init = nvenc_old_init,
+ .send_frame = ff_nvenc_send_frame,
+ .receive_packet = ff_nvenc_receive_packet,
.encode2 = ff_nvenc_encode_frame,
.close = ff_nvenc_encode_close,
.priv_data_size = sizeof(NvencContext),
@@ -216,6 +220,8 @@ AVCodec ff_h264_nvenc_encoder = {
.type = AVMEDIA_TYPE_VIDEO,
.id = AV_CODEC_ID_H264,
.init = ff_nvenc_encode_init,
+ .send_frame = ff_nvenc_send_frame,
+ .receive_packet = ff_nvenc_receive_packet,
.encode2 = ff_nvenc_encode_frame,
.close = ff_nvenc_encode_close,
.priv_data_size = sizeof(NvencContext),