Merge "Improve A2DP Bits handling" into main am: 105eddfc75 am: 94c2c067bb

Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2877314

Change-Id: I1f4c7b5ed0616b0ef6af29342f6679455f584e77
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Antoine Soulier 2023-12-15 20:43:46 +00:00 committed by Automerger Merge Worker
commit c926bd973f

View file

@ -23,7 +23,8 @@ class A2dpBits {
uint8_t* data_;
public:
A2dpBits(const std::vector<uint8_t>& vector) : cdata_(vector.data()) {}
A2dpBits(const std::vector<uint8_t>& vector)
: cdata_(vector.data()), data_(nullptr) {}
A2dpBits(std::vector<uint8_t>& vector)
: cdata_(vector.data()), data_(vector.data()) {}