Mercurial > libavcodec.hg
changeset 7611:a909361cdfc4 libavcodec
Fix PCM_S16LE_PLANAR channel-address calculation bug introduced in r14659.
author | pross |
---|---|
date | Tue, 19 Aug 2008 10:17:29 +0000 |
parents | c15e728fd413 |
children | 1302ec81afc0 |
files | pcm.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/pcm.c Tue Aug 19 08:55:40 2008 +0000 +++ b/pcm.c Tue Aug 19 10:17:29 2008 +0000 @@ -384,8 +384,8 @@ case CODEC_ID_PCM_S16LE_PLANAR: n /= avctx->channels; for(c=0;c<avctx->channels;c++) - src2[c] = &src[c*n]; - for(n>>=1;n>0;n--) + src2[c] = &src[c*n*2]; + for(;n>0;n--) for(c=0;c<avctx->channels;c++) *samples++ = bytestream_get_le16(&src2[c]); src = src2[avctx->channels-1];