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

Commit 04d0073d authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "DO NOT MERGE - Merge pie-platform-release (PPRL.190801.002) into master"

parents 2a70a39f cacc3085
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -129,6 +129,7 @@ cc_library_static {

    shared_libs: [
        "libstagefright_enc_common",
        "liblog",
    ],

    cflags: ["-Werror"],
+1 −0
Original line number Diff line number Diff line
@@ -14,6 +14,7 @@ cc_test {

    shared_libs: [
        "libdl",
        "liblog",
    ],

    static_libs: [
+11 −2
Original line number Diff line number Diff line
@@ -47,6 +47,10 @@

#include "q_pulse.h"

#undef LOG_TAG
#define LOG_TAG "amrwbenc"
#include "log/log.h"

static Word16 tipos[36] = {
    0, 1, 2, 3,                            /* starting point &ipos[0], 1st iter */
    1, 2, 3, 0,                            /* starting point &ipos[4], 2nd iter */
@@ -745,11 +749,16 @@ void ACELP_4t64_fx(

        i = (Word16)((vo_L_mult(track, NPMAXPT) >> 1));

        while (ind[i] >= 0)
        while (i < NPMAXPT * NB_TRACK && ind[i] >= 0)
        {
            i += 1;
        }
        if (i < NPMAXPT * NB_TRACK) {
            ind[i] = index;
        } else {
            ALOGE("b/132647222, OOB access in ind array track=%d i=%d", track, i);
            android_errorWriteLog(0x534e4554, "132647222");
        }
    }

    k = 0;
+6 −0
Original line number Diff line number Diff line
@@ -157,6 +157,12 @@ ssize_t HTTPDownloader::fetchBlock(
                 buffer->size() + bufferRemaining);

            sp<ABuffer> copy = new ABuffer(buffer->size() + bufferRemaining);
            if (copy->data() == NULL) {
                android_errorWriteLog(0x534e4554, "68399439");
                ALOGE("not enough memory to download: requesting %zu + %zu",
                        buffer->size(), bufferRemaining);
                return NO_MEMORY;
            }
            memcpy(copy->data(), buffer->data(), buffer->size());
            copy->setRange(0, buffer->size());

+1 −1
Original line number Diff line number Diff line
@@ -383,7 +383,7 @@ status_t TextDescriptions::extract3GPPGlobalDescriptions(
        tmpData += 8;
        size_t remaining = size - 8;

        if (size < chunkSize) {
        if (chunkSize <= 8 || size < chunkSize) {
            return OK;
        }
        switch(chunkType) {
Loading