mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-09-20 04:42:18 +02:00
libobs: Fix missing include due to FFmpeg 5 changes
Since [1], avcodec/version.h is not included anymore in codec.h and therefore is not included any more in avformat.h. As a result, LIBAVCODEC_VERSION_INT is no longer defined. This commit fixes the include. Since obviously we can't ifdef the avcodec include by referring to an avcodec version, we ifdef it with the avformat version which was bumped at the same time [2]. [1] libavcodec: Split version.hf2da2e1458
[2] doc: Add an entry to APIchanges about changes to version.h and version_major.hf3a0e2ee2b
Signed-off-by: pkv <pkv@obsproject.com>
This commit is contained in:
parent
377af35016
commit
e66542075d
@ -22,7 +22,9 @@
|
||||
#include "../util/platform.h"
|
||||
|
||||
#include <libavformat/avformat.h>
|
||||
|
||||
#if LIBAVFORMAT_VERSION_INT >= AV_VERSION_INT(59, 20, 100)
|
||||
#include <libavcodec/version.h>
|
||||
#endif
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user