Added RtpFrameObject::SetBitstream so that the frame can be updated with the decrypted payload.
Bug: webrtc:9361 Change-Id: I5d61219033f7c3ff7e7691b74322bfa44f49e326 Reviewed-on: https://webrtc-review.googlesource.com/103221 Commit-Queue: Philip Eliasson <philipel@webrtc.org> Reviewed-by: Danil Chapovalov <danilchap@webrtc.org> Cr-Commit-Position: refs/heads/master@{#24934}
This commit is contained in:
@ -37,6 +37,7 @@ class RtpFrameObject : public EncodedFrame {
|
||||
int times_nacked() const;
|
||||
enum FrameType frame_type() const;
|
||||
VideoCodecType codec_type() const;
|
||||
void SetBitstream(rtc::ArrayView<const uint8_t> bitstream);
|
||||
bool GetBitstream(uint8_t* destination) const override;
|
||||
int64_t ReceivedTime() const override;
|
||||
int64_t RenderTime() const override;
|
||||
@ -46,6 +47,8 @@ class RtpFrameObject : public EncodedFrame {
|
||||
absl::optional<FrameMarking> GetFrameMarking() const;
|
||||
|
||||
private:
|
||||
void AllocateBitstreamBuffer(size_t frame_size);
|
||||
|
||||
rtc::scoped_refptr<PacketBuffer> packet_buffer_;
|
||||
enum FrameType frame_type_;
|
||||
VideoCodecType codec_type_;
|
||||
|
Reference in New Issue
Block a user