mirror of
				https://github.com/nyanmisaka/ffmpeg-rockchip.git
				synced 2025-10-31 20:42:49 +08:00 
			
		
		
		
	avutil/hwcontext_cuda: use proper synchronization flag
This commit is contained in:
		| @@ -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; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Timo Rothenpieler
					Timo Rothenpieler