Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/ra288.c')
-rw-r--r--libavcodec/ra288.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/libavcodec/ra288.c b/libavcodec/ra288.c
index 72ed8102ee..57ee6c20dd 100644
--- a/libavcodec/ra288.c
+++ b/libavcodec/ra288.c
@@ -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);
}
}