diff options
-rw-r--r-- | libavcodec/pcm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/pcm.c b/libavcodec/pcm.c index 3079a07cae..de1e6c899f 100644 --- a/libavcodec/pcm.c +++ b/libavcodec/pcm.c @@ -411,7 +411,7 @@ static int pcm_decode_frame(AVCodecContext *avctx, 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--) { |