[FFmpeg-devel] [PATCH] libamr: Fix block sizes for WB decoding
Martin Storsjö
martin
Tue May 19 14:37:23 CEST 2009
Hi,
The attached patch fixes the list of block sizes in the libamrwb decoder
wrapper. According to the svn comments, the original size list was taken
from the IF2 list (in libamrwb?) in rev 12277, even though the decoder
isn't used in IF2 mode.
The only mode that is changed is mode 1, bitrate 8.85 kbps. To reproduce
the problem, encode a file with that bitrate:
ffmpeg -i sample.wav -acodec libamr_wb -ar 16000 -ab 8850 test.amr
And try to decode it:
ffmpeg -i test.amr out.wav
Originally, this yields a lot of warnings like this:
Multiple frames in a packet from stream 0
Error while decoding stream #0.0
With this patch applied, decoding works fine.
// Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ffmpeg-libamr-wb-block-size-fix.patch
Type: text/x-diff
Size: 535 bytes
Desc:
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090519/a0079d49/attachment.patch>
More information about the ffmpeg-devel
mailing list