git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dad6f44
)
avcodec/nvenc: use frames hwctx when registering a frame
author
Timo Rothenpieler
<timo@rothenpieler.org>
Sun, 7 May 2017 11:38:30 +0000
(13:38 +0200)
committer
Timo Rothenpieler
<timo@rothenpieler.org>
Sun, 7 May 2017 11:38:30 +0000
(13:38 +0200)
libavcodec/nvenc.c
patch
|
blob
|
history
diff --git
a/libavcodec/nvenc.c
b/libavcodec/nvenc.c
index
ab04a93
..
1d19a6b
100644
(file)
--- 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;