summaryrefslogtreecommitdiffstats
path: root/src/utils.c
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2019-09-24 15:16:11 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2019-09-24 15:16:11 +0200
commit2f84a54ec1d10b10293c7b1f4ab9fee31f3c6327 (patch)
tree02979dbbe248b47063c1168ee711436cab3bf299 /src/utils.c
parent4e207da0b1d2faa5fa38888ea824e0430ecd2f33 (diff)
downloadODR-AudioEnc-2f84a54ec1d10b10293c7b1f4ab9fee31f3c6327.tar.gz
ODR-AudioEnc-2f84a54ec1d10b10293c7b1f4ab9fee31f3c6327.tar.bz2
ODR-AudioEnc-2f84a54ec1d10b10293c7b1f4ab9fee31f3c6327.zip
Add GStreamer input prototype
Diffstat (limited to 'src/utils.c')
-rw-r--r--src/utils.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/utils.c b/src/utils.c
index 24da427..928304e 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -3,6 +3,9 @@
#include <stdint.h>
#include <math.h>
+#define MIN(a,b) (((a)<(b))?(a):(b))
+#define MAX(a,b) (((a)>(b))?(a):(b))
+
/* Taken from sox */
const char* level(int channel, int peak)
{