mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-17 21:14:47 +00: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:
parent
8d36d36e74
commit
3b4b113781
@ -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--) {
|
||||
|
Loading…
Reference in New Issue
Block a user