Skip to content

Commit abb78c0

Browse files
author
Clement Champetier
committed
frames: remove default copy constructors and assignment operator
1 parent 64d74cf commit abb78c0

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

src/AvTranscoder/data/decoded/AudioFrame.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ struct AvExport AudioFrameDesc
3535
*/
3636
class AvExport AudioFrame : public IFrame
3737
{
38+
private:
39+
AudioFrame(const AudioFrame& otherFrame);
40+
AudioFrame& operator=(const AudioFrame& otherFrame);
41+
3842
public:
3943
AudioFrame(const AudioFrameDesc& desc, const bool forceDataAllocation = true);
4044
~AudioFrame();

src/AvTranscoder/data/decoded/IFrame.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ namespace avtranscoder
1818
*/
1919
class AvExport IFrame
2020
{
21+
private:
22+
IFrame(const IFrame& otherFrame);
23+
IFrame& operator=(const IFrame& otherFrame);
24+
2125
public:
2226
/**
2327
* @brief Allocate an empty frame.

src/AvTranscoder/data/decoded/VideoFrame.hpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ struct AvExport VideoFrameDesc
4242
*/
4343
class AvExport VideoFrame : public IFrame
4444
{
45+
private:
46+
VideoFrame(const VideoFrame& otherFrame);
47+
VideoFrame& operator=(const VideoFrame& otherFrame);
48+
49+
4550
public:
4651
VideoFrame(const VideoFrameDesc& desc, const bool forceDataAllocation = true);
4752
~VideoFrame();

0 commit comments

Comments
 (0)