[Ffmpeg-cvslog] r6958 - in trunk/libavcodec: allcodecs.c avcodec.h bitstream_filter.c
Baptiste Coudurier
baptiste.coudurier
Fri Nov 10 10:40:15 CET 2006
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.
--
Baptiste COUDURIER GnuPG Key Id: 0x5C1ABAAA
SMARTJOG S.A. http://www.smartjog.com
Key fingerprint 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
Phone: +33 1 49966312
More information about the ffmpeg-cvslog
mailing list