1fc3f8904a54eb2206c175bade061e21edc6b2a6
[goodguy/cinelerra.git] / cinelerra-5.1 / thirdparty / src / ffmpeg.git.patch10
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
3 @@ -361,11 +361,13 @@
4                                                      hwctx->internal->cuda_device));
5          if (ret < 0)
6              return ret;
7 +#if 0
8      } else if (flags & AV_CUDA_USE_CURRENT_CONTEXT) {
9          ret = CHECK_CU(cu->cuCtxGetCurrent(&hwctx->cuda_ctx));
10          if (ret < 0)
11              return ret;
12          av_log(device_ctx, AV_LOG_INFO, "Using current CUDA context.\n");
13 +#endif
14      } else {
15          ret = CHECK_CU(cu->cuCtxCreate(&hwctx->cuda_ctx, desired_flags,
16                                         hwctx->internal->cuda_device));