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


_______________________________________________
FFmpeg-soc mailing list
[email protected]
http://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-soc

Reply via email to