Revert "Change SVT_FULL_VERSION"
This reverts commit 1404989dae48e7d3cc174ee60a1ac064d52ac6a2.
The commit broke compilation of src/codec_svt.c:
libavif/src/codec_svt.c:8:10: fatal error: 'svt-av1/EbVersion.h' file not found
#include "svt-av1/EbVersion.h"
^~~~~~~~~~~~~~~~~~~~~
diff --git a/src/codec_svt.c b/src/codec_svt.c
index 2a9ce71..b1a6bbf 100644
--- a/src/codec_svt.c
+++ b/src/codec_svt.c
@@ -4,8 +4,8 @@
#include "avif/internal.h"
#include "svt-av1/EbSvtAv1.h"
+
#include "svt-av1/EbSvtAv1Enc.h"
-#include "svt-av1/EbVersion.h"
#include <string.h>
@@ -25,6 +25,10 @@
// clang-format on
#endif
+#define STR_HELPER(x) #x
+#define STR(x) STR_HELPER(x)
+#define SVT_FULL_VERSION STR(SVT_AV1_VERSION_MAJOR) "." STR(SVT_AV1_VERSION_MINOR) "." STR(SVT_AV1_VERSION_PATCHLEVEL)
+
typedef struct avifCodecInternal
{
/* SVT-AV1 Encoder Handle */
@@ -215,7 +219,7 @@
const char * avifCodecVersionSvt(void)
{
- return SVT_AV1_CVS_VERSION;
+ return SVT_FULL_VERSION;
}
static void svtCodecDestroyInternal(avifCodec * codec)