Browse Source

avcodec/nvenc: use frames hwctx when registering a frame

tags/n3.4
Timo Rothenpieler 8 years ago
parent
commit
f89a89c550
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/nvenc.c

+ 1
- 1
libavcodec/nvenc.c View File

@@ -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;



Loading…
Cancel
Save