Commit 074b6183 authored by Archit Tamarapu's avatar Archit Tamarapu
Browse files

[fix] update from latest DECT package to resolve crash

parent f976e047
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -37,7 +37,7 @@ typedef __int32 int32_t;
#define LC3PLUS_VERSION_INT(major, minor, micro) (((major) << 16) | ((minor) << 8) | (micro))

/*! Version number to ensure header and binary are matching. */
#define LC3PLUS_VERSION LC3PLUS_VERSION_INT(1, 7, 1)
#define LC3PLUS_VERSION LC3PLUS_VERSION_INT(1, 7, 2)

/*! Maximum number of supported channels. The actual binary might support
 *  less, use lc3plus_channels_supported() to check. */
+4 −4
Original line number Diff line number Diff line
@@ -125,14 +125,14 @@ void processQuantizeSpec_fl(LC3_FLOAT x[], LC3_FLOAT gain, LC3_INT xq[], LC3_INT
    /* Last non-zero 2-tuple */
    for (i = nt - 2; i >= 2; i = i - 2) {
        if (xq[i + 1] != 0 || xq[i] != 0) {
            lastnz = i+2;
            lastnz = i + 1;
            break;
        }
    }

    if (mode < 0)
    {
        lastnz2 = lastnz;
        lastnz2 = lastnz + 1;
    }
    else
    {
@@ -263,9 +263,9 @@ void processQuantizeSpec_fl(LC3_FLOAT x[], LC3_FLOAT gain, LC3_INT xq[], LC3_INT
    }

    /* Truncation of high-frequency coefficients */
    if (lastnz > lastnz2)
    for (i = lastnz2; i <= lastnz; i++)
    {
        memset(&xq[lastnz2], 0, (lastnz - lastnz2) * sizeof(*xq));
        xq[i] = 0;
    }

    /* Truncation of LSBs */