mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-21 11:53:53 +00:00
libav-9 - fix missing includes
With libav-9 and ffmpeg-1.0, libavcodec/avcodec.h no longer defines the AV_CH_LAYOUT_* constants. They have been defined in libavutil/channel_layout.h for a long time prior to this.
This commit is contained in:
parent
05649a1654
commit
d75391de8e
2 changed files with 16 additions and 0 deletions
|
@ -42,6 +42,14 @@ extern "C"
|
||||||
#if AV_VERSION_INT(55, 0, 100) <= AV_VERSION_INT(LIBAVFORMAT_VERSION_MAJOR, LIBAVFORMAT_VERSION_MINOR, LIBAVFORMAT_VERSION_MICRO)
|
#if AV_VERSION_INT(55, 0, 100) <= AV_VERSION_INT(LIBAVFORMAT_VERSION_MAJOR, LIBAVFORMAT_VERSION_MINOR, LIBAVFORMAT_VERSION_MICRO)
|
||||||
#include <libavutil/time.h>
|
#include <libavutil/time.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// From libavcodec version 54.0.0 and onward the declaration of
|
||||||
|
// AV_CH_LAYOUT_* is removed from libavcodec/avcodec.h and moved to
|
||||||
|
// libavutil/channel_layout.h
|
||||||
|
#if AV_VERSION_INT(54, 0, 0) <= AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \
|
||||||
|
LIBAVCODEC_VERSION_MINOR, LIBAVCODEC_VERSION_MICRO)
|
||||||
|
#include <libavutil/channel_layout.h>
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
#define MAX_AUDIOQ_SIZE (5 * 16 * 1024)
|
#define MAX_AUDIOQ_SIZE (5 * 16 * 1024)
|
||||||
|
|
|
@ -10,6 +10,14 @@ extern "C"
|
||||||
{
|
{
|
||||||
#include <libavcodec/avcodec.h>
|
#include <libavcodec/avcodec.h>
|
||||||
#include <libavformat/avformat.h>
|
#include <libavformat/avformat.h>
|
||||||
|
|
||||||
|
// From libavcodec version 54.0.0 and onward the declaration of
|
||||||
|
// AV_CH_LAYOUT_* is removed from libavcodec/avcodec.h and moved to
|
||||||
|
// libavutil/channel_layout.h
|
||||||
|
#if AV_VERSION_INT(54, 0, 0) <= AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \
|
||||||
|
LIBAVCODEC_VERSION_MINOR, LIBAVCODEC_VERSION_MICRO)
|
||||||
|
#include <libavutil/channel_layout.h>
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
Loading…
Reference in a new issue