Mercurial > libavcodec.hg
diff wmaprodec.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 | a08f20066719 |
line wrap: on
line diff
--- a/wmaprodec.c Wed Apr 21 17:51:37 2010 +0000 +++ b/wmaprodec.c Wed Apr 21 17:57:48 2010 +0000 @@ -1351,8 +1351,9 @@ float* iptr = s->channel[i].out; float* iend = iptr + s->samples_per_frame; + // FIXME should create/use a DSP function here while (iptr < iend) { - *ptr = av_clipf(*iptr++, -1.0, 32767.0 / 32768.0); + *ptr = *iptr++; ptr += incr; }