Commit d0c48eda authored by pross's avatar pross

Fix PCM_S16LE_PLANAR channel-address calculation bug introduced in r14659.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@14831 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 06fdd40f
......@@ -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];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment