diff --git a/api/video/encoded_image.h b/api/video/encoded_image.h index 4497c8d819..ed1bb4b7b9 100644 --- a/api/video/encoded_image.h +++ b/api/video/encoded_image.h @@ -79,6 +79,9 @@ class RTC_EXPORT EncodedImage { capacity_ = capacity; } + uint8_t* data() { return _buffer; } + const uint8_t* data() const { return _buffer; } + uint32_t _encodedWidth = 0; uint32_t _encodedHeight = 0; // NTP time of the capture time in local timebase in milliseconds.