mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 19:00:01 +08:00
修复rtp ext解析相关bug
This commit is contained in:
parent
b62bd910a2
commit
fc5b09365e
@ -162,9 +162,9 @@ size_t RtpExt::size() const {
|
||||
return _size;
|
||||
}
|
||||
|
||||
const char& RtpExt::operator[](size_t pos) const{
|
||||
const uint8_t& RtpExt::operator[](size_t pos) const{
|
||||
CHECK(pos < _size);
|
||||
return _data[pos];
|
||||
return ((uint8_t*)_data)[pos];
|
||||
}
|
||||
|
||||
RtpExt::operator std::string() const{
|
||||
|
@ -99,7 +99,7 @@ private:
|
||||
RtpExt(void *ptr, bool one_byte_ext, const char *str, size_t size);
|
||||
const char *data() const;
|
||||
size_t size() const;
|
||||
const char& operator[](size_t pos) const;
|
||||
const uint8_t& operator[](size_t pos) const;
|
||||
operator std::string() const;
|
||||
|
||||
private:
|
||||
|
Loading…
Reference in New Issue
Block a user