lib/ffmpeg/Buffer: always include libavutil/mem.h

Needed for av_free().
This commit is contained in:
Max Kellermann 2014-12-26 14:09:45 +01:00
parent d4ca853fd3
commit d37811f177

View File

@ -21,11 +21,10 @@
#define MPD_FFMPEG_BUFFER_HXX #define MPD_FFMPEG_BUFFER_HXX
extern "C" { extern "C" {
#include <libavutil/avutil.h> #include <libavutil/mem.h>
#if LIBAVUTIL_VERSION_INT >= AV_VERSION_INT(52, 18, 0) #if LIBAVUTIL_VERSION_INT >= AV_VERSION_INT(52, 18, 0)
#define HAVE_AV_FAST_MALLOC #define HAVE_AV_FAST_MALLOC
#include <libavutil/mem.h>
#else #else
#include <libavcodec/avcodec.h> #include <libavcodec/avcodec.h>
#if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(52, 25, 0) #if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(52, 25, 0)