We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents bf45bbf + 3a8221c commit ea22778Copy full SHA for ea22778
media/libstagefright/codecs/amrnb/common/src/az_lsp.cpp
@@ -299,7 +299,7 @@ static Word16 Chebps(Word16 x,
299
t0 += (Word32) * (p_f) << 13;
300
301
302
- if ((UWord32)(t0 - 0xfe000000L) < 0x01ffffffL - 0xfe000000L)
+ if ((UWord32)(t0 - 0xfe000000L) < (UWord32)0x03ffffffL)
303
{
304
cheb = (Word16)(t0 >> 10);
305
}
media/libstagefright/codecs/amrnb/enc/src/set_sign.cpp
@@ -552,10 +552,10 @@ void set_sign12k2(
552
else
553
554
*(p_sign--) = -32767; /* sign = -1 */
555
- cor = - (cor);
+ cor = negate(cor);
556
557
/* modify dn[] according to the fixed sign */
558
- dn[i] = - val;
+ dn[i] = negate(val);
559
560
561
*(p_en--) = cor;
0 commit comments