#include "avcodec.h"
#include "audioconvert.h"
+#if FF_API_AUDIO_CONVERT
+
struct AVAudioConvert {
int in_channels, out_channels;
int fmt_pair;
}
return 0;
}
+
+#endif /* FF_API_AUDIO_CONVERT */
/**
* @file
* Audio format conversion routines
+ * This interface is deprecated and will be dropped in a future
+ * version. You should use the libswresample library instead.
*/
+#if FF_API_AUDIO_CONVERT
#include "libavutil/cpu.h"
#include "avcodec.h"
void * const out[6], const int out_stride[6],
const void * const in[6], const int in_stride[6], int len);
+#endif /* FF_API_AUDIO_CONVERT */
+
#endif /* AVCODEC_AUDIOCONVERT_H */
#ifndef FF_API_CODEC_ID
#define FF_API_CODEC_ID (LIBAVCODEC_VERSION_MAJOR < 56)
#endif
+#ifndef FF_API_AUDIO_CONVERT
+#define FF_API_AUDIO_CONVERT (LIBAVCODEC_VERSION_MAJOR < 56)
+#endif
#ifndef FF_API_AVCODEC_RESAMPLE
-#define FF_API_AVCODEC_RESAMPLE (LIBAVCODEC_VERSION_MAJOR < 56)
+#define FF_API_AVCODEC_RESAMPLE FF_API_AUDIO_CONVERT
#endif
#ifndef FF_API_DEINTERLACE
#define FF_API_DEINTERLACE (LIBAVCODEC_VERSION_MAJOR < 56)