mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +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:
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