[vlc-devel] [PATCH 3/3] nvdec: fix indentation
quentin.chateau at deepskycorp.com
quentin.chateau at deepskycorp.com
Tue Mar 24 17:38:40 CET 2020
From: Quentin Chateau <quentin.chateau at deepskycorp.com>
---
modules/hw/nvdec/nvdec.c | 32 ++++++++++++++++----------------
1 file changed, 16 insertions(+), 16 deletions(-)
diff --git a/modules/hw/nvdec/nvdec.c b/modules/hw/nvdec/nvdec.c
index 34f20c0a35..83cd97beb2 100644
--- a/modules/hw/nvdec/nvdec.c
+++ b/modules/hw/nvdec/nvdec.c
@@ -395,22 +395,22 @@ static int CUDAAPI HandlePictureDisplay(void *p_opaque, CUVIDPARSERDISPINFO *p_d
picctx->bufferPitch = p_sys->outputPitch;
picctx->bufferHeight = p_sys->outputHeight;
- CUDA_MEMCPY2D cu_cpy = {
- .srcMemoryType = CU_MEMORYTYPE_DEVICE,
- .srcDevice = frameDevicePtr,
- .srcPitch = i_pitch,
- .dstMemoryType = CU_MEMORYTYPE_DEVICE,
- .dstDevice = picctx->devicePtr,
- .dstPitch = picctx->bufferPitch,
- .WidthInBytes = picctx->bufferPitch,
- .Height = picctx->bufferHeight,
- };
- result = CALL_CUDA_DEC(cuMemcpy2DAsync, &cu_cpy, 0);
- if (unlikely(result != VLC_SUCCESS))
- {
- free(picctx);
- goto error;
- }
+ CUDA_MEMCPY2D cu_cpy = {
+ .srcMemoryType = CU_MEMORYTYPE_DEVICE,
+ .srcDevice = frameDevicePtr,
+ .srcPitch = i_pitch,
+ .dstMemoryType = CU_MEMORYTYPE_DEVICE,
+ .dstDevice = picctx->devicePtr,
+ .dstPitch = picctx->bufferPitch,
+ .WidthInBytes = picctx->bufferPitch,
+ .Height = picctx->bufferHeight,
+ };
+ result = CALL_CUDA_DEC(cuMemcpy2DAsync, &cu_cpy, 0);
+ if (unlikely(result != VLC_SUCCESS))
+ {
+ free(picctx);
+ goto error;
+ }
p_pic->context = &picctx->ctx;
vlc_video_context_Hold(picctx->ctx.vctx);
--
2.17.1
More information about the vlc-devel
mailing list