[FFmpeg-devel] [PATCH] nellymoserdec: Allow using unusual input block sizes
Mon Jun 14 13:27:20 CEST 2010
Currently, the nellymoser decoder tries to decode all blocks in a packet
at once (for efficiency?), instead of only decoding the first one (as many
other decoders do). The audio decoders that work in that way are able to
decode a long stream of data without any framing, as long as they're fed
with enough data to decode one packet.
If the amount of blocks in the packet isn't one of the ones the decoder is
familiar with, it simply errors out (with a message at the AV_LOG_DEBUG
level, btw) - even if it would have decoded just fine if it would decode
only one frame at a time.
The attached patch is one way of solving it, another (less efficient) way
would be to only decode the first block of a packet per call.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 920 bytes
More information about the ffmpeg-devel