Browse Source

simplify

Originally committed as revision 13788 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Michael Niedermayer 17 years ago
parent
commit
7d7a9e7f37
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      libavcodec/g726.c

+ 2
- 2
libavcodec/g726.c View File

@@ -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;
}



Loading…
Cancel
Save