projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bf75ac5
)
Simplify co(): write constant in a more readable way
author
Vitor Sessak
<vitor1001@gmail.com>
Thu, 24 Jul 2008 03:22:19 +0000
(
03:22
+0000)
committer
Vitor Sessak
<vitor1001@gmail.com>
Thu, 24 Jul 2008 03:22:19 +0000
(
03:22
+0000)
Originally committed as revision 14356 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/ra288.c
patch
|
blob
|
history
diff --git
a/libavcodec/ra288.c
b/libavcodec/ra288.c
index
5603db4
..
b81cfaa
100644
(file)
--- a/
libavcodec/ra288.c
+++ b/
libavcodec/ra288.c
@@
-158,7
+158,7
@@
static void co(int n, int i, int j, const float *in, float *out, float *st1,
st2[x] = st2[x] * 0.5625 + buffer1[x];
out[x] = st2[x] + buffer2[x];
}
- *out *=
1.00390625
; /* to prevent clipping */
+ *out *=
257./256.
; /* to prevent clipping */
}
static void update(Real288_internal *glob)