[FFmpeg-devel] [PATCH] libamr: Fix block sizes for WB decoding

Benoit Fouet benoit.fouet
Tue May 19 18:22:54 CEST 2009


On 05/19/2009 02:37 PM, Martin Storsj? wrote:
> 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.

do you know if the decoder in libamrwb can decode IF2 ?

> 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.

but in the case it was able to decode IF2 streams, it couldn't anymore.
I just want to be sure that dropping the support of IF2 is ok.


More information about the ffmpeg-devel mailing list