lib/ffmpeg/Buffer: add "malloc" attribute

This commit is contained in:
Max Kellermann 2015-06-22 09:11:22 +02:00
parent 6e2d7445c5
commit 2e98324486

View File

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