On Fri, 21 Sep 2012 11:23:41 -0400, Justin Ruggles <[email protected]> 
wrote:
> ---
>  libavcodec/pcm.c |   19 ++++++++++---------
>  1 files changed, 10 insertions(+), 9 deletions(-)
> 
> diff --git a/libavcodec/pcm.c b/libavcodec/pcm.c
> index 24272d2..895f72f 100644
> --- a/libavcodec/pcm.c
> +++ b/libavcodec/pcm.c
> @@ -339,15 +339,16 @@ static int pcm_decode_frame(AVCodecContext *avctx, void 
> *data,
>          break;
>      case AV_CODEC_ID_PCM_S16LE_PLANAR:
>      {
> -        const uint8_t *src2[MAX_CHANNELS];
>          n /= avctx->channels;
> -        for (c = 0; c < avctx->channels; c++)
> -            src2[c] = &src[c * n * 2];
> -        for (; n > 0; n--)
> -            for (c = 0; c < avctx->channels; c++) {
> -                AV_WN16A(samples, bytestream_get_le16(&src2[c]));
> -                samples += 2;
> -            }
> +        for (c = 0; c < avctx->channels; c++) {
> +            samples = s->frame.data[c];

Not extended_data?

-- 
Anton Khirnov
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to