commit | e15ad67a7eed3b2bc5ddf5549e1421c8162e00f2 | [log] [tgz] |
---|---|---|
author | Wonsik Kim <wonsik@google.com> | Fri Sep 03 21:10:33 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Fri Sep 03 21:10:33 2021 +0000 |
tree | 0347a2287d995f43281143ac50829705e483d548 | |
parent | fbdfa069b6c644f70541e8dd1a29e42286d9f250 [diff] | |
parent | 57571ed1a2e1b5fbfa9056f9e3b17d833608fe0e [diff] |
Merge "Codec2Buffer: vstride to match height" into sc-dev am: 57571ed1a2 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/av/+/15741268 Change-Id: I13cfe57a349fb52afc7dfa7ff1cc84cee044d1e2
diff --git a/media/codec2/sfplugin/Codec2Buffer.cpp b/media/codec2/sfplugin/Codec2Buffer.cpp index 4070478..62c8fcd 100644 --- a/media/codec2/sfplugin/Codec2Buffer.cpp +++ b/media/codec2/sfplugin/Codec2Buffer.cpp
@@ -248,7 +248,10 @@ // align width and height to support subsampling cleanly uint32_t stride = align(view.crop().width, 2) * divUp(layout.planes[0].allocatedDepth, 8u); - uint32_t vStride = align(view.crop().height, 2); + + int32_t fmtHeight = mHeight; + format->findInt32(KEY_HEIGHT, &fmtHeight); + uint32_t vStride = align(fmtHeight, 2); bool tryWrapping = !copy;