summaryrefslogtreecommitdiff
path: root/libavcodec/nvenc.c
diff options
context:
space:
mode:
authorTimo Rothenpieler <timo@rothenpieler.org>2017-05-07 13:38:30 +0200
committerTimo Rothenpieler <timo@rothenpieler.org>2017-05-07 13:38:30 +0200
commitf89a89c5500c57b58b1fb154bf6cf412e92677d6 (patch)
tree093c70b030fb15c7b17d47e27fed203762f010c4 /libavcodec/nvenc.c
parentdad6f44bbd578ba386ef8fdce55f88b4df21fdf6 (diff)
avcodec/nvenc: use frames hwctx when registering a frame
Diffstat (limited to 'libavcodec/nvenc.c')
-rw-r--r--libavcodec/nvenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c
index ab04a936af..1d19a6bcce 100644
--- a/libavcodec/nvenc.c
+++ b/libavcodec/nvenc.c
@@ -1408,7 +1408,7 @@ static int nvenc_register_frame(AVCodecContext *avctx, const AVFrame *frame)
NvencDynLoadFunctions *dl_fn = &ctx->nvenc_dload_funcs;
NV_ENCODE_API_FUNCTION_LIST *p_nvenc = &dl_fn->nvenc_funcs;
- AVHWFramesContext *frames_ctx = (AVHWFramesContext*)avctx->hw_frames_ctx->data;
+ AVHWFramesContext *frames_ctx = (AVHWFramesContext*)frame->hw_frames_ctx->data;
NV_ENC_REGISTER_RESOURCE reg;
int i, idx, ret;