diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c
index caf683e13c50ef807ba42d2267906049bf536d37..0783c355c8453551f53e20d8e12d0ad04dc83ae5 100644
--- a/libavcodec/nvenc.c
+++ b/libavcodec/nvenc.c
@@ -1052,7 +1052,7 @@ static int nvenc_set_timestamp(AVCodecContext *avctx,
     return nvenc_dequeue_timestamp(ctx->timestamps, &pkt->dts);
 }
 
-static int nvenc_get_frame(AVCodecContext *avctx, AVPacket *pkt)
+static int nvenc_get_output(AVCodecContext *avctx, AVPacket *pkt)
 {
     NVENCContext *ctx               = avctx->priv_data;
     NV_ENCODE_API_FUNCTION_LIST *nv = &ctx->nvel.nvenc_funcs;
@@ -1196,7 +1196,7 @@ int ff_nvenc_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
     }
 
     if (output_ready(avctx, !frame)) {
-        ret = nvenc_get_frame(avctx, pkt);
+        ret = nvenc_get_output(avctx, pkt);
         if (ret < 0)
             return ret;
         *got_packet = 1;