diff --git a/libswresample/swresample.c b/libswresample/swresample.c index 107ce168af..84d0f40232 100644 --- a/libswresample/swresample.c +++ b/libswresample/swresample.c @@ -73,7 +73,7 @@ static const AVClass av_class = { unsigned swresample_version(void) { av_assert0(LIBSWRESAMPLE_VERSION_MICRO >= 100); - return LIBSWRESAMPLE_VERSION_MICRO; + return LIBSWRESAMPLE_VERSION_INT; } const char *swresample_configuration(void) diff --git a/libswresample/swresample.h b/libswresample/swresample.h index fa85e24f1f..5b9eed926f 100644 --- a/libswresample/swresample.h +++ b/libswresample/swresample.h @@ -33,6 +33,10 @@ #define LIBSWRESAMPLE_VERSION_MINOR 5 #define LIBSWRESAMPLE_VERSION_MICRO 100 +#define LIBSWRESAMPLE_VERSION_INT AV_VERSION_INT(LIBSWRESAMPLE_VERSION_MAJOR, \ + LIBSWRESAMPLE_VERSION_MINOR, \ + LIBSWRESAMPLE_VERSION_MICRO) + #define SWR_CH_MAX 16 ///< Maximum number of channels #define SWR_FLAG_RESAMPLE 1 ///< Force resampling even if equal sample rate