mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-06-19 19:03:00 +02:00
Add av_clipf() function to common.h and use it in ra288.c
Originally committed as revision 14213 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
+2
-8
@@ -88,14 +88,8 @@ static void decode(Real288_internal *glob, float gain, int cb_coef)
|
||||
|
||||
/* output */
|
||||
for (x=0; x < 5; x++) {
|
||||
float f = glob->sb[4-x] + buffer[x];
|
||||
|
||||
if (f > 4095)
|
||||
f = 4095;
|
||||
else if (f < -4095)
|
||||
f = -4095;
|
||||
|
||||
glob->output[glob->phase*5+x] = glob->sb[4-x] = f;
|
||||
glob->output[glob->phase*5+x] = glob->sb[4-x] =
|
||||
av_clipf(glob->sb[4-x] + buffer[x], -4095, 4095);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user