--- a/libavutil/hwcontext_cuda.c 2025-04-18 14:35:01.291580404 -0600 +++ b/libavutil/hwcontext_cuda.c 2025-04-18 14:34:29.859129090 -0600 @@ -365,11 +365,13 @@ hwctx->internal->cuda_device)); if (ret < 0) return ret; +#if 0 } else if (flags & AV_CUDA_USE_CURRENT_CONTEXT) { ret = CHECK_CU(cu->cuCtxGetCurrent(&hwctx->cuda_ctx)); if (ret < 0) return ret; av_log(device_ctx, AV_LOG_INFO, "Using current CUDA context.\n"); +#endif } else { ret = CHECK_CU(cu->cuCtxCreate(&hwctx->cuda_ctx, desired_flags, hwctx->internal->cuda_device));