[FFmpeg-devel] [PATCH] flac demuxer

Michael Niedermayer michaelni
Fri May 2 09:15:04 CEST 2008


On Thu, May 01, 2008 at 11:42:54PM -0400, Justin Ruggles wrote:
> Michael Niedermayer wrote:
> > On Wed, Apr 30, 2008 at 10:15:35PM -0400, Justin Ruggles wrote:
> >> Hi,
> >>
> >> I wrote:
> >>> I'll make the appropriate changes and submit new patch(es).
> >> Here are 6 new patches which do the same as the last patch.
> >>
> >> -Justin
> >>
> >>
> >>[...]
> >> diff --git a/libavcodec/flac.c b/libavcodec/flac.c
> >> index 28e25e7..fb1ac49 100644
> >> --- a/libavcodec/flac.c
> >> +++ b/libavcodec/flac.c
> >> @@ -119,7 +119,7 @@ static av_cold int flac_decode_init(AVCodecContext * avctx)
> >>  
> >>  static void dump_headers(AVCodecContext *avctx, FLACContext *s)
> >>  {
> >> -    av_log(avctx, AV_LOG_DEBUG, "  Blocksize: %d .. %d (%d)\n", s->min_blocksize, s->max_blocksize, s->blocksize);
> >> +    av_log(avctx, AV_LOG_DEBUG, "  Blocksize: %d .. %d\n", s->min_blocksize, s->max_blocksize);
> >>      av_log(avctx, AV_LOG_DEBUG, "  Max Framesize: %d\n", s->max_framesize);
> >>      av_log(avctx, AV_LOG_DEBUG, "  Samplerate: %d\n", s->samplerate);
> >>      av_log(avctx, AV_LOG_DEBUG, "  Channels: %d\n", s->channels);
> > 
> > why?
> 
> ok, i guess this should really be done at the same time as patch #5, and
> should also include changing the input to a FLACStreaminfo instead of a
> FLACContext.
> 
> > 
> > [...]
> >> +#ifndef FFMPEG_FLAC_H
> >> +#define FFMPEG_FLAC_H
> >> +
> >> +#include "avcodec.h"
> >> +
> >> +/**
> >> + * Data needed from the Streaminfo header for use by the raw FLAC demuxer
> >> + * and/or the FLAC decoder.
> >> + */
> >> +#define FLACSTREAMINFO \
> >> +    int min_blocksize;      /**< minimum block size, in samples          */\
> >> +    int max_blocksize;      /**< maximum block size, in samples          */\
> >> +    int max_framesize;      /**< maximum frame size, in bytes            */\
> >> +    int samplerate;         /**< sample rate                             */\
> >> +    int channels;           /**< number of channels                      */\
> >> +    int bps;                /**< bits-per-sample                         */\
> >> +
> >> +#endif /* FFMPEG_FLAC_H */
> > 
> > This file does NOT need avcodec.h
> 
> sure enough.  I'll take it out.
> 
> New patch set:
> 
> already approved:
> 0001-change-function-params-for-metadata_streaminfo.patch
> 0002-change-function-params-for-dump_headers.patch
> 0005-move-init_get_bits-inside-conditional.patch
> 
> attached:
> 0003-split-out-some-decoder-context-params-to-a-shared-macro.patch
> 0004-share-streaminfo-parsing-function.patch
> 
> 
> Thanks,
> Justin
> 
> 

> >From e7c9ccea2bfb073069536620b9fa3ea66234f6be Mon Sep 17 00:00:00 2001
> From: Justin Ruggles <justin.ruggles at gmail.com>
> Date: Thu, 1 May 2008 23:32:01 -0400
> Subject: [PATCH] split out some decoder context params to a shared macro

ok


[...]

> >From 9d87939cfb088f139f804a1d165de7d23304d288 Mon Sep 17 00:00:00 2001
> From: Justin Ruggles <justin.ruggles at gmail.com>
> Date: Thu, 1 May 2008 23:35:48 -0400
> Subject: [PATCH] share streaminfo parsing function

ok

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

I have often repented speaking, but never of holding my tongue.
-- Xenocrates
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080502/61201786/attachment.pgp>



More information about the ffmpeg-devel mailing list