Mercurial > libavcodec.hg
diff wmavoice.c @ 11652:8b6f3d3b55cb libavcodec
Move clipping of audio samples (for those codecs outputting float) from decoder
to the audio conversion routines.
author | rbultje |
---|---|
date | Wed, 21 Apr 2010 17:57:48 +0000 |
parents | 7dd2a45249a9 |
children | 28638e0d6e63 |
line wrap: on
line diff
--- a/wmavoice.c Wed Apr 21 17:51:37 2010 +0000 +++ b/wmavoice.c Wed Apr 21 17:57:48 2010 +0000 @@ -1117,8 +1117,7 @@ av_log_missing_feature(ctx, "APF", 0); s->do_apf = 0; } //else - for (n = 0; n < 160; n++) - samples[n] = av_clipf(synth[n], -1.0, 1.0); + memcpy(samples, synth, 160 * sizeof(synth[0])); /* Cache values for next frame */ s->frame_cntr++;