From 60b69ab3e76d38880c17abbaf8d11955ae0870a0 Mon Sep 17 00:00:00 2001 From: Martin Storsjo Date: Fri, 1 Nov 2013 12:06:46 +0200 Subject: [PATCH] Include the library versions in the publicly installed headers This allows callers to conditionally use new API features without breaking compatibility with the earlier versions of the library. --- libAACdec/include/aacdecoder_lib.h | 4 ++++ libAACenc/include/aacenc_lib.h | 3 +++ 2 files changed, 7 insertions(+) diff --git a/libAACdec/include/aacdecoder_lib.h b/libAACdec/include/aacdecoder_lib.h index 7ab60f1..9ae43de 100644 --- a/libAACdec/include/aacdecoder_lib.h +++ b/libAACdec/include/aacdecoder_lib.h @@ -348,6 +348,10 @@ Where N equals to CStreamInfo::frameSize . #include "genericStds.h" +#define AACDECODER_LIB_VL0 2 +#define AACDECODER_LIB_VL1 5 +#define AACDECODER_LIB_VL2 17 + /** * \brief AAC decoder error codes. */ diff --git a/libAACenc/include/aacenc_lib.h b/libAACenc/include/aacenc_lib.h index 828a917..63c3697 100644 --- a/libAACenc/include/aacenc_lib.h +++ b/libAACenc/include/aacenc_lib.h @@ -705,6 +705,9 @@ the encoder deactivates PNS calculation internally. #include "machine_type.h" #include "FDK_audio.h" +#define AACENCODER_LIB_VL0 3 +#define AACENCODER_LIB_VL1 4 +#define AACENCODER_LIB_VL2 22 /** * AAC encoder error codes.