aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/ffmpeg
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2015-06-22 09:11:22 +0200
committerMax Kellermann <max@duempel.org>2015-06-22 09:11:22 +0200
commit2e983244865ab1c004022034e74f61b8d8620543 (patch)
treee4bd09c179e91ec31f5e6ff111130b1bba4d1a8f /src/lib/ffmpeg
parent6e2d7445c50e30090e468f7c76fb95ff0c219183 (diff)
downloadmpd-2e983244865ab1c004022034e74f61b8d8620543.tar.gz
mpd-2e983244865ab1c004022034e74f61b8d8620543.tar.xz
mpd-2e983244865ab1c004022034e74f61b8d8620543.zip
lib/ffmpeg/Buffer: add "malloc" attribute
Diffstat (limited to 'src/lib/ffmpeg')
-rw-r--r--src/lib/ffmpeg/Buffer.hxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/ffmpeg/Buffer.hxx b/src/lib/ffmpeg/Buffer.hxx
index fed5cb6e6..2463ce197 100644
--- a/src/lib/ffmpeg/Buffer.hxx
+++ b/src/lib/ffmpeg/Buffer.hxx
@@ -51,6 +51,7 @@ public:
av_free(data);
}
+ gcc_malloc
void *Get(size_t min_size) {
#ifdef HAVE_AV_FAST_MALLOC
av_fast_malloc(&data, &size, min_size);