mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 23:42:58 +02:00
driver/audiodec/ffmpegdec: work-around for pre-2.2 ffmpeg API build
This commit is contained in:
@@ -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>
|
||||||
|
Reference in New Issue
Block a user