The code in this file is copy and pasted from FFmpegs libavcodec/libgsm.c Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
The WAVE demuxer returns packets with many blocks per frame, which needs to be parsed into single blocks. This has a side-effect of fixing the timestamps.