| commit | a5c1d4f8d6d59ec0960b2c13b76431bbbbc61b26 | [log] [tgz] |
|---|---|---|
| author | Lajos Molnar <lajos@google.com> | Wed Feb 26 18:16:50 2025 -0800 |
| committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Wed Apr 09 15:16:34 2025 -0700 |
| tree | 07e81d98a7af7f27e4c6d90f299d424a34d5ce83 | |
| parent | 1863cb0ea5a9e1340f11a435618ff863e017da29 [diff] |
mediandk: clean up AMediaCodec_getInput/OutputBuffer semantics AMediaCodec_getInputBuffer erroneously considered the offset, which could result in a smaller input buffer being returned and client confusion. In practice, input buffer offset is rarely used. Similarly, the buffer size returned from AMediaCodec_getOutputBuffer included padding after the output buffer leading to potential confusion. Now the size returned from both AMediaCodec_getOutputBuffer and AMediaCodec_dequeueOutputBuffer is correct. Also removed mentions of non-existing NDK methods AMediaCodec_getOutputBuffers and AMediaCodec_getInputBuffers. Bug: 301470262 Flag: EXEMPT bugfix (cherry picked from commit d69fe7b73a0ed14c2b5bc237f1a42314140c9458) Merged-in: I6bbd9b85023aef56a608362afde0662d3df7284a (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:20cca3672f4fbcef3e8dd0cc1a46f585a576ab3c) Merged-In: I6bbd9b85023aef56a608362afde0662d3df7284a Change-Id: I6bbd9b85023aef56a608362afde0662d3df7284a