# HG changeset patch # User pross # Date 1218544360 0 # Node ID 0a0208d7582fd3b47fb3dd7ebd3683b9d7eb9c5d # Parent f9e4afa46993c08517285376a33e0141bf84688e Fix CODEC_ID_PCM_U8 decoder output size calculation to support odd-number of samples. diff -r f9e4afa46993 -r 0a0208d7582f pcm.c --- a/pcm.c Tue Aug 12 03:01:17 2008 +0000 +++ b/pcm.c Tue Aug 12 12:32:40 2008 +0000 @@ -411,7 +411,7 @@ case CODEC_ID_PCM_U8: memcpy(samples, src, n); src += n; - samples += n/2; + samples = (short*)((uint8_t*)data + n); break; case CODEC_ID_PCM_ZORK: for(;n>0;n--) {