[FFmpeg-devel] [PATCH 4/5] Add PCE support to the ADTS muxer.

Aurelien Jacobs aurel
Tue May 19 14:43:44 CEST 2009


On Wed, May 13, 2009 at 03:42:06PM -0400, Alex Converse wrote:
> On Wed, May 13, 2009 at 1:26 AM, Alex Converse <alex.converse at gmail.com> wrote:
> > ---
> > ?libavformat/adtsenc.c | ? 29 ++++++++++++++++++++++++-----
> > ?1 files changed, 24 insertions(+), 5 deletions(-)
> >
> >
> 
> New patch to compensate for changes in 0003

> diff --git a/libavformat/adtsenc.c b/libavformat/adtsenc.c
> index 3d57724..7f2260b 100644
> --- a/libavformat/adtsenc.c
> +++ b/libavformat/adtsenc.c
> @@ -23,6 +23,7 @@
>  #include "libavcodec/get_bits.h"
>  #include "libavcodec/put_bits.h"
>  #include "libavcodec/internal.h"
> +#include "libavcodec/mpeg4audio.h"
>  #include "avformat.h"
> 
> [...]
> 
> +        adts->pce_size = (ff_copy_pce_data(&pb, &gb) + 3) / 8;

Looks like this file can be compiled without mpeg4audio.c being compiled.
You probably need to add a Makefile dependency like this:

Index: libavcodec/Makefile
===================================================================
--- libavcodec/Makefile	(revision 18868)
+++ libavcodec/Makefile	(working copy)
@@ -360,6 +360,7 @@
 OBJS-$(CONFIG_ADPCM_YAMAHA_ENCODER)       += adpcm.o
 
 # libavformat dependencies
+OBJS-$(CONFIG_ADTS_MUXER)              += mpeg4audio.o
 OBJS-$(CONFIG_EAC3_DEMUXER)            += ac3_parser.o ac3tab.o aac_ac3_parser.o
 OBJS-$(CONFIG_FLAC_DEMUXER)            += flacdec.o flacdata.o flac.o
 OBJS-$(CONFIG_FLAC_MUXER)              += flacdec.o flacdata.o flac.o


Aurel



More information about the ffmpeg-devel mailing list