1 --- a/libavutil/hwcontext_cuda.c.orig 2023-11-11 03:25:17.000000000 +0300
2 +++ b/libavutil/hwcontext_cuda.c 2023-11-12 17:52:01.243063419 +0300
4 hwctx->internal->cuda_device));
8 } else if (flags & AV_CUDA_USE_CURRENT_CONTEXT) {
9 ret = CHECK_CU(cu->cuCtxGetCurrent(&hwctx->cuda_ctx));
12 av_log(device_ctx, AV_LOG_INFO, "Using current CUDA context.\n");
15 ret = CHECK_CU(cu->cuCtxCreate(&hwctx->cuda_ctx, desired_flags,
16 hwctx->internal->cuda_device));