Fixed a possible infinite loop in AMR decoding