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

Commit 00b0d6e3 authored by android-build-team Robot's avatar android-build-team Robot
Browse files

Snap for 6727488 from cefe085c to rvc-qpr1-release

Change-Id: Idd60c2471c4a5f45b2008339b45b92946262e9ad
parents 5dd527e9 cefe085c
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -279,6 +279,8 @@ void C2SoftVorbisDec::process(
        // skip 7 <type + "vorbis"> bytes
        // skip 7 <type + "vorbis"> bytes
        makeBitReader((const uint8_t *)data + 7, inSize - 7, &buf, &ref, &bits);
        makeBitReader((const uint8_t *)data + 7, inSize - 7, &buf, &ref, &bits);
        if (data[0] == 1) {
        if (data[0] == 1) {
            // release any memory that vorbis_info_init will blindly overwrite
            vorbis_info_clear(mVi);
            vorbis_info_init(mVi);
            vorbis_info_init(mVi);
            if (0 != _vorbis_unpack_info(mVi, &bits)) {
            if (0 != _vorbis_unpack_info(mVi, &bits)) {
                ALOGE("Encountered error while unpacking info");
                ALOGE("Encountered error while unpacking info");
@@ -323,6 +325,8 @@ void C2SoftVorbisDec::process(
                work->result = C2_CORRUPTED;
                work->result = C2_CORRUPTED;
                return;
                return;
            }
            }
            // release any memory that vorbis_dsp_init will blindly overwrite
            vorbis_dsp_clear(mState);
            if (0 != vorbis_dsp_init(mState, mVi)) {
            if (0 != vorbis_dsp_init(mState, mVi)) {
                ALOGE("Encountered error while dsp init");
                ALOGE("Encountered error while dsp init");
                mSignalledError = true;
                mSignalledError = true;