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:
philipel
2018-10-02 17:01:45 +02:00
committed by Commit Bot
parent d2650d1a28
commit 5fb245498c
2 changed files with 28 additions and 14 deletions

View File

@ -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_;