Fix compile errors for newer libav versions
LibAV changed their constant names. This cause a build error, so this redefine the old names as alias for the new ones. Signed-off-by: Jan Losinski <losinski@wh2.tu-dresden.de>
This commit is contained in:
parent
5f16481feb
commit
d6c4c2fb20
@ -24,6 +24,27 @@
|
|||||||
#include "xrdpvr.h"
|
#include "xrdpvr.h"
|
||||||
#include "xrdpvr_internal.h"
|
#include "xrdpvr_internal.h"
|
||||||
|
|
||||||
|
/* Support newer versions of ffmpeg and libav */
|
||||||
|
#if ! defined(CODEC_TYPE_AUDIO)
|
||||||
|
#define CODEC_TYPE_AUDIO AVMEDIA_TYPE_AUDIO
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if ! defined(CODEC_TYPE_VIDEO)
|
||||||
|
#define CODEC_TYPE_VIDEO AVMEDIA_TYPE_VIDEO
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if ! defined(PKT_FLAG_KEY)
|
||||||
|
#define PKT_FLAG_KEY AV_PKT_FLAG_KEY
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef CODEC_ID_H264
|
||||||
|
#define CODEC_ID_H264 AV_CODEC_ID_H264
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef CODEC_ID_AAC
|
||||||
|
#define CODEC_ID_AAC AV_CODEC_ID_AAC
|
||||||
|
#endif
|
||||||
|
|
||||||
/* globals */
|
/* globals */
|
||||||
PLAYER_STATE_INFO g_psi;
|
PLAYER_STATE_INFO g_psi;
|
||||||
int g_video_index = -1;
|
int g_video_index = -1;
|
||||||
|
Loading…
Reference in New Issue
Block a user