Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e55147f4 authored by Martin Storsjo's avatar Martin Storsjo
Browse files

stagefright amrnb: Properly negate all values

Initially, input values -32768 weren't negated properly.

This was committed on the master branch of the opencore
repository in commit f532d145194e474cb30d8644b8eee83873ad24cc,
based on AOSP contribution 10906.

Change-Id: I903353c5539a8fe94b7fc5f26b95eaeac57df5f4
parent 773f4576
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -552,10 +552,10 @@ void set_sign12k2(
        else
        {
            *(p_sign--) = -32767;                     /* sign = -1 */
            cor = - (cor);
            cor = negate(cor);

            /* modify dn[] according to the fixed sign */
            dn[i] = - val;
            dn[i] = negate(val);
        }

        *(p_en--) = cor;