Merge "Improve A2DP Bits handling" into main

This commit is contained in:
Antoine Soulier 2023-12-15 19:37:24 +00:00 committed by Gerrit Code Review
commit 105eddfc75

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()) {}