commit | a6cd34bb1a08d44b6dd79bb3d3633965a28f8bf4 | [log] [tgz] |
---|---|---|
author | TreeHugger Robot <treehugger-gerrit@google.com> | Wed Oct 30 22:15:17 2019 +0000 |
committer | Android (Google) Code Review <android-gerrit@google.com> | Wed Oct 30 22:15:17 2019 +0000 |
tree | 83e30eb92938856427100db5fb034a6a491df859 | |
parent | 3cc114cc5820f78c0f14dd69492d5f37cf826cfb [diff] | |
parent | fad4c79db311d7b878c331cba044c1faab418108 [diff] |
Merge "C2AllocatorGralloc: Fix stride in map()"
diff --git a/media/codec2/vndk/C2AllocatorGralloc.cpp b/media/codec2/vndk/C2AllocatorGralloc.cpp index b6552f5..8fffa5e 100644 --- a/media/codec2/vndk/C2AllocatorGralloc.cpp +++ b/media/codec2/vndk/C2AllocatorGralloc.cpp
@@ -769,7 +769,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);