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

Commit b135d0e6 authored by Marco Nelissen's avatar Marco Nelissen Committed by Gerrit Code Review
Browse files

Merge "Fix overflow in amrwbenc"

parents e491d0ba bc8c47e1
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -74,6 +74,9 @@ void Preemph2(
            L_tmp = INT32_MAX / 2;
        }
        L_tmp = (L_tmp << 1);
        if (L_tmp > INT32_MAX - 0x8000) {
            L_tmp = INT32_MAX - 0x8000;
        }
        x[i] = (L_tmp + 0x8000)>>16;
    }