[FFmpeg-devel] [PATCH] Speex parser

Michael Niedermayer michaelni
Sun Aug 30 23:31:37 CEST 2009

On Sun, Aug 30, 2009 at 10:40:45AM -0400, Justin Ruggles wrote:
> Hi,
> Here is a Speex parser.  It does not split any frames, but only analyzes
> them in order to set the proper AVCodecContext parameters.

the decoder can do this, av_find_stream_info() should already create a
decoder to fill these in when they are missing.

> It is useful mainly for stream copy when no header is present or if some
> values in the header are encoded as "unknown".  Also, if the extradata
> is missing, the parser will create it using correct values.  This is
> better than what is done currently in the FLV demuxer, which guesses
> some header values based on defaults and sets some as "unknown".

it seems creating fake(1) extradata belongs more in a bitstream filter than
a parser

(1) fake in the sense that it does not exist like that in the container

Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

When the tyrant has disposed of foreign enemies by conquest or treaty, and
there is nothing more to fear from them, then he is always stirring up
some war or other, in order that the people may require a leader. -- Plato
-------------- 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/20090830/45fcc55e/attachment.pgp>

More information about the ffmpeg-devel mailing list