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

Origin commit data
------------------
Branch: ni/coolstream
Commit: be45410a3d
Author: martii <m4rtii@gmx.de>
Date: 2014-04-13 (Sun, 13 Apr 2014)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
martii
2014-04-13 10:08:21 +02:00
committed by [CST] Focus
parent f5a5894579
commit 730d7dc55f

View File

@@ -42,6 +42,11 @@ extern "C" {
#include <libavutil/samplefmt.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 <driver/netfile.h>