From 6c42d92ccc21d33ee944d61733a57d55b128fe9b Mon Sep 17 00:00:00 2001 From: philipel Date: Thu, 20 Jun 2019 11:13:03 +0200 Subject: [PATCH] Added video_coding::EncodedFrame copy ctor. Bug: none Change-Id: I45272e81509741dc022d613758466ad0f8de7a31 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/143160 Reviewed-by: Stefan Holmer Commit-Queue: Philip Eliasson Cr-Commit-Position: refs/heads/master@{#28333} --- api/video/encoded_frame.h | 1 + modules/video_coding/encoded_frame.cc | 2 ++ modules/video_coding/encoded_frame.h | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/api/video/encoded_frame.h b/api/video/encoded_frame.h index fa06568aa9..1b2e531e69 100644 --- a/api/video/encoded_frame.h +++ b/api/video/encoded_frame.h @@ -57,6 +57,7 @@ class EncodedFrame : public webrtc::VCMEncodedFrame { static const uint8_t kMaxFrameReferences = 5; EncodedFrame() = default; + EncodedFrame(const EncodedFrame&) = default; virtual ~EncodedFrame() {} // When this frame was received. diff --git a/modules/video_coding/encoded_frame.cc b/modules/video_coding/encoded_frame.cc index 7a204c16b3..c7a74904c8 100644 --- a/modules/video_coding/encoded_frame.cc +++ b/modules/video_coding/encoded_frame.cc @@ -30,6 +30,8 @@ VCMEncodedFrame::VCMEncodedFrame() _codecSpecificInfo.codecType = kVideoCodecGeneric; } +VCMEncodedFrame::VCMEncodedFrame(const VCMEncodedFrame&) = default; + VCMEncodedFrame::~VCMEncodedFrame() { Reset(); } diff --git a/modules/video_coding/encoded_frame.h b/modules/video_coding/encoded_frame.h index f8ee6a7e0a..75b4b5bbb1 100644 --- a/modules/video_coding/encoded_frame.h +++ b/modules/video_coding/encoded_frame.h @@ -23,7 +23,7 @@ namespace webrtc { class VCMEncodedFrame : protected EncodedImage { public: VCMEncodedFrame(); - VCMEncodedFrame(const VCMEncodedFrame&) = delete; + VCMEncodedFrame(const VCMEncodedFrame&); ~VCMEncodedFrame(); /**