X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;ds=sidebyside;f=cinelerra-5.1%2Fthirdparty%2Fsrc%2Fffmpeg.git.patch10;fp=cinelerra-5.1%2Fthirdparty%2Fsrc%2Fffmpeg.git.patch10;h=1fc3f8904a54eb2206c175bade061e21edc6b2a6;hb=21f715f2d24d38bd7a0eccb22d64cdf18f0e3df9;hp=c94880d020e778fb7db7558eabbef24a87d81c12;hpb=def7a2e3e4f053af598be006210a4cd29d984305;p=goodguy%2Fcinelerra.git diff --git a/cinelerra-5.1/thirdparty/src/ffmpeg.git.patch10 b/cinelerra-5.1/thirdparty/src/ffmpeg.git.patch10 index c94880d0..1fc3f890 100644 --- a/cinelerra-5.1/thirdparty/src/ffmpeg.git.patch10 +++ b/cinelerra-5.1/thirdparty/src/ffmpeg.git.patch10 @@ -1,34 +1,16 @@ ---- a/libavutil/hwcontext_cuda.c -+++ b/libavutil/hwcontext_cuda.c -@@ -286,9 +286,11 @@ - CudaFunctions *cu = hwctx->internal->cuda_dl; - - if (hwctx->internal->is_allocated && hwctx->cuda_ctx) { -+#ifdef CUDA_PRIMARY_CTX - if (hwctx->internal->flags & AV_CUDA_USE_PRIMARY_CONTEXT) - CHECK_CU(cu->cuDevicePrimaryCtxRelease(hwctx->internal->cuda_device)); - else -+#endif - CHECK_CU(cu->cuCtxDestroy(hwctx->cuda_ctx)); - - hwctx->cuda_ctx = NULL; -@@ -338,7 +340,7 @@ - cu = hwctx->internal->cuda_dl; - - hwctx->internal->flags = flags; -- -+#ifdef CUDA_PRIMARY_CTX - if (flags & AV_CUDA_USE_PRIMARY_CONTEXT) { - ret = CHECK_CU(cu->cuDevicePrimaryCtxGetState(hwctx->internal->cuda_device, - &dev_flags, &dev_active)); -@@ -359,7 +361,9 @@ +--- a/libavutil/hwcontext_cuda.c.orig 2023-11-11 03:25:17.000000000 +0300 ++++ b/libavutil/hwcontext_cuda.c 2023-11-12 17:52:01.243063419 +0300 +@@ -361,11 +361,13 @@ hwctx->internal->cuda_device)); if (ret < 0) return ret; -- } else { -+ } else ++#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)); - if (ret < 0)