summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/android/mm/cros_camera_buffer.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/android/mm/cros_camera_buffer.cpp b/src/android/mm/cros_camera_buffer.cpp
index 59e26d1b..c4157606 100644
--- a/src/android/mm/cros_camera_buffer.cpp
+++ b/src/android/mm/cros_camera_buffer.cpp
@@ -113,13 +113,13 @@ Span<uint8_t> CameraBuffer::Private::plane(unsigned int plane)
break;
default:
switch (plane) {
- case 1:
+ case 0:
addr = mem.ycbcr.y;
break;
- case 2:
+ case 1:
addr = mem.ycbcr.cb;
break;
- case 3:
+ case 2:
addr = mem.ycbcr.cr;
break;
}