[FFmpeg-cvslog] r14831 - trunk/libavcodec/pcm.c

pross subversion
Tue Aug 19 12:17:30 CEST 2008


Author: pross
Date: Tue Aug 19 12:17:29 2008
New Revision: 14831

Log:
Fix PCM_S16LE_PLANAR channel-address calculation bug introduced in r14659.


Modified:
   trunk/libavcodec/pcm.c

Modified: trunk/libavcodec/pcm.c
==============================================================================
--- trunk/libavcodec/pcm.c	(original)
+++ trunk/libavcodec/pcm.c	Tue Aug 19 12:17:29 2008
@@ -384,8 +384,8 @@ static int pcm_decode_frame(AVCodecConte
     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];




More information about the ffmpeg-cvslog mailing list