On 10/10/13 16:43, Reinhard Tartler wrote:
> On Wed, Oct 9, 2013 at 4:41 PM, Anton Khirnov <an...@khirnov.net> wrote:
>> From: Andreas Unterweger <dustsi...@gmail.com>
>>
>> Signed-off-by: Anton Khirnov <an...@khirnov.net>
>> ---
>> Added some fixes, mostly cosmetics, but also some functional (using
>> frame->nb_samples instead of codec context frame size, which might not be
>> constant, or known at all; only write output packet it the encoder actually
>> returned it).
>>
>> A certain Diego should also help us with integrating this with the build 
>> system.
>> ---
>>  doc/examples/Makefile  |   15 +
>>  doc/examples/mp3_aac.c |  722 
>> ++++++++++++++++++++++++++++++++++++++++++++++++
>>  2 files changed, 737 insertions(+)
>>  create mode 100644 doc/examples/Makefile
>>  create mode 100644 doc/examples/mp3_aac.c
>>
>> diff --git a/doc/examples/Makefile b/doc/examples/Makefile
>> new file mode 100644
>> index 0000000..ddc53bb
>> --- /dev/null
>> +++ b/doc/examples/Makefile
>> @@ -0,0 +1,15 @@
>> +CC=gcc
>> +
>> +CFLAGS=-c -Wall
>> +LDFLAGS=-lavformat -lavcodec -lavresample -lavutil -lvo-aacenc -lpthread -lm
>> +
>> +all: mp3_to_aac
>> +
>> +mp3_to_aac: mp3_aac
>> +       $(CC) mp3_aac.o -o mp3_to_aac.exe $(LDFLAGS)
>> +
>> +mp3_aac: mp3_aac.c
>> +       $(CC) $(CFLAGS) mp3_aac.c
>> +
>> +clean:
>> +       rm -rf *.o *.exe
> 
> 
> What about this makefile:
> 
> CC=gcc

better leave it as is.
> 
> CFLAGS=-Wall -O2
> LDLIBS=-lavformat -lavcodec -lavresample -lavutil -lvo-aacenc
> -lpthread -lm -lz -lbz2

LIBS should be get from pkg-config.

> all: mp3_aac
> 
> clean:
>         rm -f mp3_aac
> 
> .PHONY: all clean

Obviously ok.

lu
_______________________________________________
libav-devel mailing list
libav-devel@libav.org
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to