* ffmpeg, just enough to get resample2.c to compile without
* modification -- Lennart */
+#if !defined(PACKAGE) && defined(HAVE_CONFIG_H)
+#include <config.h>
+#endif
+
#include <sys/types.h>
#include <inttypes.h>
#include <math.h>
void av_resample_close(struct AVResampleContext *c);
void av_build_filter(int16_t *filter, double factor, int tap_count, int phase_count, int scale, int type);
+/*
+ * crude lrintf for non-C99 systems.
+ */
+#ifndef HAVE_LFRINTF
+#define lrintf(x) ((long int)(x))
+#endif
+
#endif /* AVCODEC_H */
return v;
}
-/*
- * crude lrintf for non-C99 systems.
- */
-#ifndef HAVE_LFRINTF
-#define lrintf(x) ((long int)(x))
-#endif
-
/**
* builds a polyphase filterbank.
* @param factor resampling factor