aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorPeter Ross <pross@xvid.org>2008-08-19 10:17:29 +0000
committerPeter Ross <pross@xvid.org>2008-08-19 10:17:29 +0000
commit4efbd75583ab6462936303f625f389419dc688b4 (patch)
tree04113345e14030e61ce5768e204a891f5d1d1083 /libavcodec
parent6ec87fbd92a8c67af5eb644d315feb62a17c36c9 (diff)
downloadffmpeg-4efbd75583ab6462936303f625f389419dc688b4.tar.gz
Fix PCM_S16LE_PLANAR channel-address calculation bug introduced in r14659.
Originally committed as revision 14831 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/pcm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/pcm.c b/libavcodec/pcm.c
index 85a2d231d6..adaa371f65 100644
--- a/libavcodec/pcm.c
+++ b/libavcodec/pcm.c
@@ -384,8 +384,8 @@ static int pcm_decode_frame(AVCodecContext *avctx,
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];