commit | 6c42d92ccc21d33ee944d61733a57d55b128fe9b | [log] [tgz] |
---|---|---|
author | philipel <philipel@webrtc.org> | Thu Jun 20 09:13:03 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Thu Jun 20 11:19:50 2019 |
tree | 908f9705985f2a66cdb752428a1abc97ace841a8 | |
parent | f00bf42d1ceb7e72008f51968b13af8763e3f2a7 [diff] |
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 <stefan@webrtc.org> Commit-Queue: Philip Eliasson <philipel@webrtc.org> Cr-Commit-Position: refs/heads/master@{#28333}
diff --git a/api/video/encoded_frame.h b/api/video/encoded_frame.h index fa06568..1b2e531 100644 --- a/api/video/encoded_frame.h +++ b/api/video/encoded_frame.h
@@ -57,6 +57,7 @@ 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 7a204c1..c7a7490 100644 --- a/modules/video_coding/encoded_frame.cc +++ b/modules/video_coding/encoded_frame.cc
@@ -30,6 +30,8 @@ _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 f8ee6a7..75b4b5b 100644 --- a/modules/video_coding/encoded_frame.h +++ b/modules/video_coding/encoded_frame.h
@@ -23,7 +23,7 @@ class VCMEncodedFrame : protected EncodedImage { public: VCMEncodedFrame(); - VCMEncodedFrame(const VCMEncodedFrame&) = delete; + VCMEncodedFrame(const VCMEncodedFrame&); ~VCMEncodedFrame(); /**