[Ffmpeg-cvslog] r6958 - in trunk/libavcodec: allcodecs.c avcodec.h bitstream_filter.c

Michael Niedermayer michaelni
Fri Nov 10 17:48:16 CET 2006


Hi

On Fri, Nov 10, 2006 at 10:40:15AM +0100, Baptiste Coudurier wrote:
> Hi
> 
> michael wrote:
> > Author: michael
> > Date: Fri Nov 10 02:41:53 2006
> > New Revision: 6958
> > 
> > Modified:
> >    trunk/libavcodec/allcodecs.c
> >    trunk/libavcodec/avcodec.h
> >    trunk/libavcodec/bitstream_filter.c
> > 
> > Log:
> > mp3 header (de)compression bitstream filter
> > this will make mp3 frames 4 bytes smaller, it will not give you binary identical mp3 files, but it will give you mp3 files which decode to binary identical output
> > this will only work in containers providing at least packet size, sample_rate and number of channels 
> > bugreports about mp3 files for which this fails are welcome
> > and this is experimental (dont expect compatibility and dont even expect to be able to decompress what you compressed, hell dont even expect this to work without editing the source a little)
> > 
> > [...]
> > 
> > Modified: trunk/libavcodec/bitstream_filter.c
> > ==============================================================================
> > --- trunk/libavcodec/bitstream_filter.c	(original)
> > +++ trunk/libavcodec/bitstream_filter.c	Fri Nov 10 02:41:53 2006
> > @@ -19,6 +19,7 @@
> >   */
> >  
> >  #include "avcodec.h"
> > +#include "mpegaudio.h"
> >  
> >  AVBitStreamFilter *first_bitstream_filter= NULL;
> >  
> > @@ -124,6 +125,112 @@
> >      return 1;
> >  }
> >  
> > +static int mp3_header_compress(AVBitStreamFilterContext *bsfc, AVCodecContext *avctx, const char *args,
> > +                     uint8_t **poutbuf, int *poutbuf_size,
> > +                     const uint8_t *buf, int buf_size, int keyframe){
> 
> Is it better to put related codec filters in their source file ?
> Like mpegaudio.c for this one.

id say mpegaudio_filter.c would be optimal, feel free to cvs cp ... them

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

In the past you could go to a library and read, borrow or copy any book
Today you'd get arrested for mere telling someone where the library is




More information about the ffmpeg-cvslog mailing list