[FFmpeg-devel] [PATCH] nellymoserdec: Allow using unusual input block sizes

Martin Storsjö martin
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.

// Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-nellymoserdec-Allow-using-unusual-input-block-sizes.patch
Type: text/x-diff
Size: 920 bytes
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100614/9b0cade7/attachment.patch>

More information about the ffmpeg-devel mailing list