shithub: aacenc

Download patch

ref: a3833b4ee66df2d02419ce636f1f83553691bc15
parent: 39ceeea51bf321899c5d82f27b7c5ce8e4e35a0e
author: oxygene <oxygene>
date: Thu Mar 1 15:46:30 EST 2001

Added support for TNS, fixed a typo

--- a/frontend/Makefile
+++ b/frontend/Makefile
@@ -1,6 +1,6 @@
 prefix = /usr/local
 
-CFLAGS := -L../libfaad -I../include $(CFLAGS)
+CFLAGS := -L../libfaac -I../include $(CFLAGS)
 
 faac: main.c
 	gcc $(CFLAGS) -o faac -lfaac -lsndfile main.c
--- a/libfaac/Makefile
+++ b/libfaac/Makefile
@@ -1,18 +1,22 @@
 prefix = /usr/local
 
+MIN = 'min(a,b)=( (a) < (b) ? (a) : (b) )'
+MAX = 'max(a,b)=( (a) > (b) ? (a) : (b) )'
+
 #CFLAGS := -ansi -pedantic $(CFLAGS)
-CFLAGS := -DHAS_ULONG $(CFLAGS)
+CFLAGS := -DHAS_ULONG -D$(MIN) -D$(MAX) $(CFLAGS)
 
 SRC= \
-aacquant.c\
-bitstream.c\
-channels.c\
-fft.c\
-filtbank.c\
-frame.c\
-huffman.c\
-joint.c\
-psych.c\
+aacquant.c \
+bitstream.c \
+channels.c \
+fft.c \
+filtbank.c \
+frame.c \
+huffman.c \
+joint.c \
+psych.c \
+tns.c \
 util.c
 
 OBJ = $(SRC:.c=.o)