projects
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aca4907
)
simplify
author
Michael Niedermayer
<michaelni@gmx.at>
Mon, 16 Jun 2008 23:31:23 +0000
(23:31 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Mon, 16 Jun 2008 23:31:23 +0000
(23:31 +0000)
Originally committed as revision 13788 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/g726.c
patch
|
blob
|
blame
|
history
diff --git
a/libavcodec/g726.c
b/libavcodec/g726.c
index
88f7cee
..
6086e38
100644
(file)
--- a/
libavcodec/g726.c
+++ b/
libavcodec/g726.c
@@
-52,8
+52,8
@@
static inline int16_t mult(Float11* f1, Float11* f2)
int res, exp;
exp = f1->exp + f2->exp;
- res = (((f1->mant * f2->mant) + 0x30) >> 4)
<< 7
;
- res = exp >
26 ? res << (exp - 26) : res >> (26
- exp);
+ res = (((f1->mant * f2->mant) + 0x30) >> 4);
+ res = exp >
19 ? res << (exp - 19) : res >> (19
- exp);
return (f1->sign ^ f2->sign) ? -res : res;
}