mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2024-12-26 21:17:12 +00:00
20e3eeddde
2a68d945cd
added const version of a callback functions but didn't enable them. They were guarded by a version check:2a68d945cd/libavformat/version_major.h (L48)
So for anything LIBAVFORMAT_VERSION_MAJOR < 61 they are not enabled therefore they are enabled for everything >= 61.0.100. See https://github.com/elsid/openmw/actions/runs/10255993574/job/28374152796 as example of failure when building with 60.16.100.
14 lines
288 B
C++
14 lines
288 B
C++
#ifndef OPENMW_EXTERN_OSG_FFMPEG_VIDEOPLAYER_LIBAVFORMATDEFINES_H
|
|
#define OPENMW_EXTERN_OSG_FFMPEG_VIDEOPLAYER_LIBAVFORMATDEFINES_H
|
|
|
|
extern "C"
|
|
{
|
|
|
|
#include <libavformat/version.h>
|
|
|
|
}
|
|
|
|
#define OPENMW_FFMPEG_CONST_WRITEPACKET (LIBAVFORMAT_VERSION_INT >= AV_VERSION_INT(61, 0, 100))
|
|
|
|
#endif
|