commit | 34a7610faa9e320e051ee99040b5c51991970d66 | [log] [tgz] |
---|---|---|
author | TreeHugger Robot <treehugger-gerrit@google.com> | Wed Oct 30 02:38:34 2019 +0000 |
committer | Android (Google) Code Review <android-gerrit@google.com> | Wed Oct 30 02:38:34 2019 +0000 |
tree | 2899e1574ba93576398e5c807f2b085a92149802 | |
parent | 44b4130b364c74a5c7000b8ab81a2b9d63acd30c [diff] | |
parent | 7875f687efc883c2df813f339b4b5dd3b614d5a3 [diff] |
Merge "Fix stride number in C2AllocationGralloc::map"
diff --git a/media/codec2/vndk/C2AllocatorGralloc.cpp b/media/codec2/vndk/C2AllocatorGralloc.cpp index 3a715b1..b6552f5 100644 --- a/media/codec2/vndk/C2AllocatorGralloc.cpp +++ b/media/codec2/vndk/C2AllocatorGralloc.cpp
@@ -633,7 +633,7 @@ int32_t stride; if (mMapper2) { stride = int32_t(mInfo2.stride); - } if (mMapper3) { + } else if (mMapper3) { stride = int32_t(mInfo3.stride); } else { stride = int32_t(mInfo4.stride);