driver/audiodec/ffmpegdec: work-around for pre-2.2 ffmpeg API build

Origin commit data
------------------
Commit: be45410a3d
Author: martii <m4rtii@gmx.de>
Date: 2014-04-13 (Sun, 13 Apr 2014)
This commit is contained in:
martii
2014-04-13 10:08:21 +02:00
committed by [CST] Focus
parent bc7cc18902
commit 47a602469b

View File

@@ -42,6 +42,11 @@ extern "C" {
#include <libavutil/samplefmt.h> #include <libavutil/samplefmt.h>
#include <libswresample/swresample.h> #include <libswresample/swresample.h>
} }
#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(55, 28, 1)
#define av_frame_alloc avcodec_alloc_frame
#define av_frame_unref avcodec_get_frame_defaults
#define av_frame_free avcodec_free_frame
#endif
#include <OpenThreads/ScopedLock> #include <OpenThreads/ScopedLock>
#include <driver/netfile.h> #include <driver/netfile.h>