1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-26 19:01:44 +02:00

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

Originally committed as revision 14712 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Peter Ross 2008-08-12 12:32:40 +00:00
parent 8d36d36e74
commit 3b4b113781

View File

@ -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--) {