[FFmpeg-soc] [soc]: r1544 - amr/amrnbfloatdec.c

Benjamin Larsson banan at ludd.ltu.se
Mon Dec 10 16:59:28 CET 2007


superdump wrote:
> Author: superdump
> Date: Mon Dec 10 16:50:23 2007
> New Revision: 1544
>
> Log:
> Don't overwrite the decoded subframe samples with the next. Concatenate them
> in the output.
>
>
> Modified:
>    amr/amrnbfloatdec.c
>
> Modified: amr/amrnbfloatdec.c
> ==============================================================================
> --- amr/amrnbfloatdec.c	(original)
> +++ amr/amrnbfloatdec.c	Mon Dec 10 16:50:23 2007
> @@ -1287,7 +1287,7 @@ static int amrnb_decode_frame(AVCodecCon
>              p->samples_in[i] += p->add_bias;
>          }
>          p->dsp.float_to_int16(p->samples_out, p->samples_in, AMR_SUBFRAME_SIZE);
> -        memcpy(buf_out, p->samples_out, AMR_SUBFRAME_SIZE*sizeof(int16_t));
> +        memcpy(&buf_out[subframe*AMR_SUBFRAME_SIZE], p->samples_out, AMR_SUBFRAME_SIZE*sizeof(int16_t));
>   

What's wrong with

p->dsp.float_to_int16(&buf_out[subframe*AMR_SUBFRAME_SIZE]
, p->samples_in, AMR_SUBFRAME_SIZE);

?

MvH
Benjamin Larsson





More information about the FFmpeg-soc mailing list