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}
diff --git a/modules/video_coding/frame_object.h b/modules/video_coding/frame_object.h
index 968489b..efded47 100644
--- a/modules/video_coding/frame_object.h
+++ b/modules/video_coding/frame_object.h
@@ -37,6 +37,7 @@
   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 @@
   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_;