Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimo Rothenpieler <timo@rothenpieler.org>2018-05-07 16:01:22 +0300
committerTimo Rothenpieler <timo@rothenpieler.org>2018-05-10 01:34:22 +0300
commitc85568342741e0e1b48fc36c780342de8ad29be7 (patch)
treedea9adb3512522d1e25d98edaddfe61d95975cf9 /libavutil/hwcontext_cuda.c
parentbaabd3c2adb0fd1234fd7756e0b1861233753a1e (diff)
avutil/hwcontext_cuda: add CUstream in cuda hwctx
Diffstat (limited to 'libavutil/hwcontext_cuda.c')
-rw-r--r--libavutil/hwcontext_cuda.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavutil/hwcontext_cuda.c b/libavutil/hwcontext_cuda.c
index 37827a770c..f3e81680e9 100644
--- a/libavutil/hwcontext_cuda.c
+++ b/libavutil/hwcontext_cuda.c
@@ -386,6 +386,9 @@ static int cuda_device_create(AVHWDeviceContext *ctx, const char *device,
goto error;
}
+ // Setting stream to NULL will make functions automatically use the default CUstream
+ hwctx->stream = NULL;
+
cu->cuCtxPopCurrent(&dummy);
hwctx->internal->is_allocated = 1;