diff options
author | Ronald S. Bultje <rsbultje@gmail.com> | 2010-04-21 17:57:48 +0000 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2010-04-21 17:57:48 +0000 |
commit | b1078e9fe6b5d8f034d15a6ab91430fd41921fe2 (patch) | |
tree | 5d16af4805e9567267f3f3daa96e015523f4216c /libavcodec/wmavoice.c | |
parent | 6858ce2ffc4c57a279b22ab6d8eb56ac3884796e (diff) | |
download | ffmpeg-b1078e9fe6b5d8f034d15a6ab91430fd41921fe2.tar.gz |
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/wmavoice.c')
-rw-r--r-- | libavcodec/wmavoice.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/wmavoice.c b/libavcodec/wmavoice.c index 0d81d58bd4..97dabd2526 100644 --- a/libavcodec/wmavoice.c +++ b/libavcodec/wmavoice.c @@ -1117,8 +1117,7 @@ static int synth_frame(AVCodecContext *ctx, GetBitContext *gb, 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++; |