[FFmpeg-cvslog] avcodec/nvenc: use frames hwctx when registering a frame
Timo Rothenpieler
git at videolan.org
Sun May 7 15:14:35 EEST 2017
ffmpeg | branch: master | Timo Rothenpieler <timo at rothenpieler.org> | Sun May 7 13:38:30 2017 +0200| [f89a89c5500c57b58b1fb154bf6cf412e92677d6] | committer: Timo Rothenpieler
avcodec/nvenc: use frames hwctx when registering a frame
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f89a89c5500c57b58b1fb154bf6cf412e92677d6
---
libavcodec/nvenc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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;
More information about the ffmpeg-cvslog
mailing list