OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ba0e516
)
avutil/hwcontext_cuda: use proper synchronization flag
author
Timo Rothenpieler
<timo@rothenpieler.org>
Thu, 29 Sep 2016 18:40:23 +0000
(20:40 +0200)
committer
Timo Rothenpieler
<timo@rothenpieler.org>
Thu, 29 Sep 2016 20:58:34 +0000
(22:58 +0200)
libavutil/hwcontext_cuda.c
patch
|
blob
|
history
diff --git
a/libavutil/hwcontext_cuda.c
b/libavutil/hwcontext_cuda.c
index
fa24c5d
..
40d2971
100644
(file)
--- a/
libavutil/hwcontext_cuda.c
+++ b/
libavutil/hwcontext_cuda.c
@@
-283,7
+283,7
@@
static int cuda_device_create(AVHWDeviceContext *ctx, const char *device,
return AVERROR_UNKNOWN;
}
- err = cuCtxCreate(&hwctx->cuda_ctx,
0
, cu_device);
+ err = cuCtxCreate(&hwctx->cuda_ctx,
CU_CTX_SCHED_BLOCKING_SYNC
, cu_device);
if (err != CUDA_SUCCESS) {
av_log(ctx, AV_LOG_ERROR, "Error creating a CUDA context\n");
return AVERROR_UNKNOWN;