Commit dbe5c50f authored by pross's avatar pross

Fix CODEC_ID_PCM_U8 decoder output size calculation to support odd-number of samples.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@14712 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent b77596e5
......@@ -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--) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment