From a8a80ee689d8f2ac0d64102c910751d43b41969d Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 4 Nov 2020 19:51:07 +0100 Subject: lib/ffmpeg/Buffer: disallow copying --- src/lib/ffmpeg/Buffer.hxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/lib/ffmpeg/Buffer.hxx b/src/lib/ffmpeg/Buffer.hxx index 330f5ed11..521f40d2e 100644 --- a/src/lib/ffmpeg/Buffer.hxx +++ b/src/lib/ffmpeg/Buffer.hxx @@ -37,6 +37,9 @@ public: av_free(data); } + FfmpegBuffer(const FfmpegBuffer &) = delete; + FfmpegBuffer &operator=(const FfmpegBuffer &) = delete; + gcc_malloc void *Get(size_t min_size) noexcept { av_fast_malloc(&data, &size, min_size); -- cgit v1.2.3