Revision 7d7a9e7f

View differences:

libavcodec/g726.c
52 52
        int res, exp;
53 53

  
54 54
        exp = f1->exp + f2->exp;
55
        res = (((f1->mant * f2->mant) + 0x30) >> 4) << 7;
56
        res = exp > 26 ? res << (exp - 26) : res >> (26 - exp);
55
        res = (((f1->mant * f2->mant) + 0x30) >> 4);
56
        res = exp > 19 ? res << (exp - 19) : res >> (19 - exp);
57 57
        return (f1->sign ^ f2->sign) ? -res : res;
58 58
}
59 59

  

Also available in: Unified diff