commit | 43d2e5f4a34ef4086a5eb1989ee5b1b91ff19460 | [log] [tgz] |
---|---|---|
author | TreeHugger Robot <treehugger-gerrit@google.com> | Sat Jul 24 02:27:50 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Sat Jul 24 02:27:50 2021 +0000 |
tree | 44b8a99cd3534d2380b726e2eb1ac38d92dbddff | |
parent | 1e703acbf4cf7a1f8f98ed9b38e28cb49d43b4f5 [diff] | |
parent | 6ac4ef512e211f09b1357c7c012a9786f414a83d [diff] |
Merge "CCodec: wrap graphic buffer only if Y plane has the smallest address" into sc-dev am: 6ac4ef512e Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/av/+/15367054 Change-Id: I54782c638dd3b6b6b80932eced9c135ab8b74f6c
diff --git a/media/codec2/sfplugin/Codec2Buffer.cpp b/media/codec2/sfplugin/Codec2Buffer.cpp index 691bab1..4070478 100644 --- a/media/codec2/sfplugin/Codec2Buffer.cpp +++ b/media/codec2/sfplugin/Codec2Buffer.cpp
@@ -491,7 +491,7 @@ * align(mHeight, 64) / plane.rowSampling; } - if ((maxPtr - minPtr + 1) <= planeSize) { + if (minPtr == mView.data()[0] && (maxPtr - minPtr + 1) <= planeSize) { // FIXME: this is risky as reading/writing data out of bound results // in an undefined behavior, but gralloc does assume a // contiguous mapping