diff options
author | Max Kellermann <max@musicpd.org> | 2020-11-04 19:51:07 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2020-11-04 19:51:21 +0100 |
commit | a8a80ee689d8f2ac0d64102c910751d43b41969d (patch) | |
tree | ff61c9eca97c5aed481822e34e4c15631177195f /src | |
parent | f9bdb4b0b8f95fd64c9e4544a35b3ca280d2cf26 (diff) |
lib/ffmpeg/Buffer: disallow copying
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/ffmpeg/Buffer.hxx | 3 |
1 files changed, 3 insertions, 0 deletions
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); |