[vlc-devel] [PATCH] [nvdec] fixed typo

quentin.chateau at deepskycorp.com quentin.chateau at deepskycorp.com
Wed Feb 19 18:11:56 CET 2020


From: Quentin Chateau <quentin.chateau at deepskycorp.com>

---
 modules/hw/nvdec/chroma.c    | 2 +-
 modules/hw/nvdec/nvdec.c     | 6 +++---
 modules/hw/nvdec/nvdec_fmt.h | 2 +-
 modules/hw/nvdec/nvdec_gl.c  | 2 +-
 4 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/modules/hw/nvdec/chroma.c b/modules/hw/nvdec/chroma.c
index c96bcb9106..c8952624d4 100644
--- a/modules/hw/nvdec/chroma.c
+++ b/modules/hw/nvdec/chroma.c
@@ -78,7 +78,7 @@ static picture_t * FilterCUDAToCPU( filter_t *p_filter, picture_t *src )
         }
         CUDA_MEMCPY2D cu_cpy = {
             .srcMemoryType  = CU_MEMORYTYPE_DEVICE,
-            .srcDevice      = srcpic->devidePtr,
+            .srcDevice      = srcpic->devicePtr,
             .srcY           = srcY,
             .srcPitch       = srcpic->bufferPitch,
             .dstMemoryType  = CU_MEMORYTYPE_HOST,
diff --git a/modules/hw/nvdec/nvdec.c b/modules/hw/nvdec/nvdec.c
index 0e7c784487..e5cda56ef3 100644
--- a/modules/hw/nvdec/nvdec.c
+++ b/modules/hw/nvdec/nvdec.c
@@ -390,7 +390,7 @@ static int CUDAAPI HandlePictureDisplay(void *p_opaque, CUVIDPARSERDISPINFO *p_d
             p_sys->vctx_out,
         };
         uintptr_t pool_idx = (uintptr_t)p_pic->p_sys;
-        picctx->devidePtr = p_sys->outputDevicePtr[pool_idx];
+        picctx->devicePtr = p_sys->outputDevicePtr[pool_idx];
         picctx->bufferPitch = p_sys->outputPitch;
         picctx->bufferHeight = p_sys->decoderHeight;
 
@@ -405,7 +405,7 @@ static int CUDAAPI HandlePictureDisplay(void *p_opaque, CUVIDPARSERDISPINFO *p_d
                     .srcY           = srcY,
                     .srcPitch       = i_pitch,
                     .dstMemoryType  = CU_MEMORYTYPE_DEVICE,
-                    .dstDevice      = picctx->devidePtr,
+                    .dstDevice      = picctx->devicePtr,
                     .dstPitch       = picctx->bufferPitch,
                     .dstY           = dstY,
                     .WidthInBytes   = i_pitch,
@@ -430,7 +430,7 @@ static int CUDAAPI HandlePictureDisplay(void *p_opaque, CUVIDPARSERDISPINFO *p_d
                     .srcY           = srcY,
                     .srcPitch       = i_pitch,
                     .dstMemoryType  = CU_MEMORYTYPE_DEVICE,
-                    .dstDevice      = picctx->devidePtr,
+                    .dstDevice      = picctx->devicePtr,
                     .dstPitch       = picctx->bufferPitch,
                     .dstY           = dstY,
                     .WidthInBytes   = i_pitch,
diff --git a/modules/hw/nvdec/nvdec_fmt.h b/modules/hw/nvdec/nvdec_fmt.h
index fda98a11bc..25784cca6d 100644
--- a/modules/hw/nvdec/nvdec_fmt.h
+++ b/modules/hw/nvdec/nvdec_fmt.h
@@ -64,7 +64,7 @@ static inline bool is_nvdec_opaque(vlc_fourcc_t fourcc)
 typedef struct
 {
     picture_context_t ctx;
-    CUdeviceptr  devidePtr;
+    CUdeviceptr  devicePtr;
     unsigned int bufferPitch;
     unsigned int bufferHeight;
 } pic_context_nvdec_t;
diff --git a/modules/hw/nvdec/nvdec_gl.c b/modules/hw/nvdec/nvdec_gl.c
index 4a8408d7ed..137e730028 100644
--- a/modules/hw/nvdec/nvdec_gl.c
+++ b/modules/hw/nvdec/nvdec_gl.c
@@ -125,7 +125,7 @@ tc_nvdec_gl_update(const struct vlc_gl_interop *interop, GLuint textures[],
     {
         CUDA_MEMCPY2D cu_cpy = {
             .srcMemoryType  = CU_MEMORYTYPE_DEVICE,
-            .srcDevice      = srcpic->devidePtr,
+            .srcDevice      = srcpic->devicePtr,
             .srcPitch       = srcpic->bufferPitch,
             .srcY           = srcY,
             .dstMemoryType = CU_MEMORYTYPE_ARRAY,
-- 
2.17.1



More information about the vlc-devel mailing list