diff --git a/components/codecs/src/depth_convert.cu b/components/codecs/src/depth_convert.cu
index 8b6bef8b5bf78fa8691a4ec0710b036fd3313554..81dc7d3bb731342d792036f7b97cdb1a94977947 100644
--- a/components/codecs/src/depth_convert.cu
+++ b/components/codecs/src/depth_convert.cu
@@ -80,8 +80,8 @@ __global__ void depth_to_nv12_10_kernel(cv::cuda::PtrStepSz<float> depth, ushort
 		luminance[(y+1)*pitch+x] = ushort(yuv3.x*255.0f) << 8;
 		luminance[(y+1)*pitch+x+1] = ushort(yuv4.x*255.0f) << 8;
 
-		chroma[(y/2)*pitch+x] = ushort(Hb) << 8;
-		chroma[(y/2)*pitch+x+1] = ushort(Ha) << 8;
+		chroma[(y/2)*pitch+x] = ushort(Ha) << 8;
+		chroma[(y/2)*pitch+x+1] = ushort(Hb) << 8;
 	}
 }