lib/ffmpeg/Buffer: disallow copying

This commit is contained in:
Max Kellermann 2020-11-04 19:51:07 +01:00
parent f9bdb4b0b8
commit a8a80ee689

View File

@ -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);