1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

swr: fix swresample_version()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2011-12-23 23:26:02 +01:00
parent 8ff4fff774
commit 320b8d6335
2 changed files with 5 additions and 1 deletions

View File

@ -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)

View File

@ -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