diff options
author | Stanislav Brabec <sbrabec@suse.cz> | 2007-04-12 10:59:52 +0000 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2007-04-12 10:59:52 +0000 |
commit | 91024272cb397568517545387ee3e506e2631fe8 (patch) | |
tree | 3b801849b66c374c714d6ff5c3695a83b011346c /libavcodec | |
parent | 0c8351b80f624964fe0bcbc5811b5b311e7902b9 (diff) | |
download | ffmpeg-streaming-91024272cb397568517545387ee3e506e2631fe8.zip ffmpeg-streaming-91024272cb397568517545387ee3e506e2631fe8.tar.gz |
Replace hackish support for amr-nb and amr-wb. Instead of including the source
of the reference implementation it is possible to use proper libraries now.
patch by Stanislav Brabec, sbrabec suse cz, changes and bug fixes by me
Originally committed as revision 8717 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/Makefile | 26 | ||||
-rw-r--r-- | libavcodec/amr.c | 11 |
2 files changed, 6 insertions, 31 deletions
diff --git a/libavcodec/Makefile b/libavcodec/Makefile index f1a1685..9292c85 100644 --- a/libavcodec/Makefile +++ b/libavcodec/Makefile @@ -4,7 +4,7 @@ # include ../config.mak -CFLAGS+=-I$(SRC_PATH)/libswscale $(AMR_CFLAGS) +CFLAGS+=-I$(SRC_PATH)/libswscale OBJS= bitstream.o \ utils.o \ @@ -270,33 +270,11 @@ OBJS-$(CONFIG_X264) += x264.o OBJS-$(CONFIG_XVID) += xvidff.o xvid_rc.o OBJS-$(CONFIG_AMR) += amr.o -OBJS-$(CONFIG_AMR_NB) += amr_float/sp_dec.o \ - amr_float/sp_enc.o \ - amr_float/interf_dec.o \ - amr_float/interf_enc.o - ifeq ($(CONFIG_AMR_NB_FIXED),yes) EXTRAOBJS += amr/*.o EXTRADEPS=amrlibs endif -OBJS-$(CONFIG_AMR_WB) += amrwb_float/dec_acelp.o \ - amrwb_float/dec_dtx.o \ - amrwb_float/dec_gain.o \ - amrwb_float/dec_if.o \ - amrwb_float/dec_lpc.o \ - amrwb_float/dec_main.o \ - amrwb_float/dec_rom.o \ - amrwb_float/dec_util.o \ - amrwb_float/enc_acelp.o \ - amrwb_float/enc_dtx.o \ - amrwb_float/enc_gain.o \ - amrwb_float/enc_if.o \ - amrwb_float/enc_lpc.o \ - amrwb_float/enc_main.o \ - amrwb_float/enc_rom.o \ - amrwb_float/enc_util.o \ - amrwb_float/if_rom.o OBJS-$(CONFIG_AAC_PARSER) += parser.o OBJS-$(CONFIG_AC3_PARSER) += parser.o ac3.o @@ -433,10 +411,8 @@ clean:: ps2/*.o ps2/*~ \ sh4/*.o sh4/*~ \ sparc/*.o sparc/*~ \ - amr_float/*.o \ apiexample $(TESTS) -$(MAKE) -C amr clean - -$(MAKE) -C amrwb_float -f makefile.gcc clean apiexample: apiexample.o $(LIB) diff --git a/libavcodec/amr.c b/libavcodec/amr.c index 0a46254..3ded25e 100644 --- a/libavcodec/amr.c +++ b/libavcodec/amr.c @@ -82,8 +82,8 @@ #include "amr/e_homing.h" #else -#include "amr_float/interf_dec.h" -#include "amr_float/interf_enc.h" +#include <amrnb/interf_dec.h> +#include <amrnb/interf_enc.h> #endif static const char *nb_bitrate_unsupported = @@ -532,8 +532,9 @@ AVCodec amr_nb_encoder = #define typedef_h #endif -#include "amrwb_float/enc_if.h" -#include "amrwb_float/dec_if.h" +#include <amrwb/enc_if.h> +#include <amrwb/dec_if.h> +#include <amrwb/if_rom.h> /* Common code for fixed and float version*/ typedef struct AMRWB_bitrates @@ -652,8 +653,6 @@ static int amr_wb_decode_init(AVCodecContext * avctx) return 0; } -extern const UWord8 block_size[]; - static int amr_wb_decode_frame(AVCodecContext * avctx, void *data, int *data_size, uint8_t * buf, int buf_size) |