[FFmpeg-devel] [PATCH] read metadata in FLAC demuxer

Justin Ruggles justinruggles
Mon Oct 1 02:52:35 CEST 2007

Rich Felker wrote:
> On Sun, Sep 30, 2007 at 02:47:18PM -0400, Justin Ruggles wrote:
>> Michael Niedermayer wrote:
>>> On Sun, Sep 30, 2007 at 12:48:08AM -0400, Justin Ruggles wrote:
>>>> Hi,
>>>> Here is a patch to fix issue 187 in the FFmpeg Issue Tracker, "flac decoder 
>>>> fails with large metadata".
>>>> For raw FLAC files, the metadata header(s) are read in the demuxer rather 
>>>> than the decoder.  This correctly skips any irrelevant metadata blocks, and 
>>>> it also parses vorbiscomment info.
>>> what happens with flac in avi and matroska ?
>> True, it should be handled in those demuxers as well.  And I do see your 
>> point as far as code duplication.  I'm working on a better solution with 
>> shared code between the decoder and all the demuxers.
> For other formats, metadata should not be in Ogg-specific format but
> in whatever standard format the container uses.. I suspect that was
> Michael's point..

I see.  Well the streaminfo data should be in the same format no matter 
what the container.  Also, I believe a series of FLAC metadata blocks is 
standard for extradata in raw FLAC, Matroska, and other containers 
besides Ogg.  AFAIK, Ogg is the only one which uses its own unique 
layout for FLAC metadata.  The solution I'm working on takes this into 


More information about the ffmpeg-devel mailing list