[FFmpeg-devel] [PATCH] Set correct frame_size for Speex decoding

Justin Ruggles justin.ruggles
Sun Jul 26 05:02:09 CEST 2009


Currently AVCodecContext.frame_size is not set correctly for Speex.
Since the Ogg and FLV demuxers and the libspeex decoder handle a full
packet as a single frame, frame_size should be set to the Speex
frame_size * frames_per_packet.

If frames_per_packet is not specified in the Speex header, or if there
is no header, it can be determined after decoding the first packet.

Stream copy is not implemented yet for Speex, but once it is, a parser
will be able to set all the stream parameters instead of the decoder
when the header is missing or incomplete.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: speex_frame_size.patch
Type: text/x-patch
Size: 2387 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090725/d9d2db64/attachment.bin>

More information about the ffmpeg-devel mailing list