diff options
author | Ronald S. Bultje <rsbultje@gmail.com> | 2010-04-21 21:57:48 +0400 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2010-04-21 21:57:48 +0400 |
commit | b1078e9fe6b5d8f034d15a6ab91430fd41921fe2 (patch) | |
tree | 5d16af4805e9567267f3f3daa96e015523f4216c /libavcodec/wmaprodec.c | |
parent | 6858ce2ffc4c57a279b22ab6d8eb56ac3884796e (diff) |
Move clipping of audio samples (for those codecs outputting float) from decoder
to the audio conversion routines.
Originally committed as revision 22937 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/wmaprodec.c')
-rw-r--r-- | libavcodec/wmaprodec.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/wmaprodec.c b/libavcodec/wmaprodec.c index 71bf0f72b3..3eca10150a 100644 --- a/libavcodec/wmaprodec.c +++ b/libavcodec/wmaprodec.c @@ -1351,8 +1351,9 @@ static int decode_frame(WMAProDecodeCtx *s) 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; } |