Mercurial > libavcodec.hg
comparison ra288.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 | 8a4984c5cacc |
children | 5071d562408d |
comparison
equal
deleted
inserted
replaced
11651:926ad89ae57a | 11652:8b6f3d3b55cb |
---|---|
100 memmove(gain_block, gain_block + 1, 9 * sizeof(*gain_block)); | 100 memmove(gain_block, gain_block + 1, 9 * sizeof(*gain_block)); |
101 | 101 |
102 gain_block[9] = 10 * log10(sum) - 32; | 102 gain_block[9] = 10 * log10(sum) - 32; |
103 | 103 |
104 ff_celp_lp_synthesis_filterf(block, ractx->sp_lpc, buffer, 5, 36); | 104 ff_celp_lp_synthesis_filterf(block, ractx->sp_lpc, buffer, 5, 36); |
105 | |
106 /* output */ | |
107 for (i=0; i < 5; i++) | |
108 block[i] = av_clipf(block[i], -4095./4096., 4095./4096.); | |
109 } | 105 } |
110 | 106 |
111 /** | 107 /** |
112 * Hybrid window filtering, see blocks 36 and 49 of the G.728 specification. | 108 * Hybrid window filtering, see blocks 36 and 49 of the G.728 specification. |
113 * | 109 * |