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

Commit b93ae7ea authored by Andreas Huber's avatar Andreas Huber Committed by Android Git Automerger
Browse files

am 3e8b89bd: am 2be77a22: Merge "Partial revert of previous change to improve...

am 3e8b89bd: am 2be77a22: Merge "Partial revert of previous change to improve hardware AAC decoder performance, increasing the input buffer size so dramatically accidentally broke streaming performance." into froyo

Merge commit '3e8b89bd' into kraken

* commit '3e8b89bd':
  Partial revert of previous change to improve hardware AAC decoder performance, increasing the input buffer size so dramatically accidentally broke streaming performance.
parents 62057cdd 3e8b89bd
Loading
Loading
Loading
Loading
+0 −20
Original line number Diff line number Diff line
@@ -535,26 +535,6 @@ status_t OMXCodec::configureCodec(const sp<MetaData> &meta) {
                return err;
            }
        }
    } else if (!strncasecmp(mMIME, "audio/", 6)) {
        if ((mQuirks & kSupportsMultipleFramesPerInputBuffer)
            && !strcmp(mComponentName, "OMX.TI.AAC.decode")) {
            OMX_PARAM_PORTDEFINITIONTYPE def;
            InitOMXParams(&def);
            def.nPortIndex = kPortIndexInput;

            status_t err = mOMX->getParameter(
                    mNode, OMX_IndexParamPortDefinition, &def, sizeof(def));
            CHECK_EQ(err, OK);

            const size_t kMinBufferSize = 100 * 1024;
            if (def.nBufferSize < kMinBufferSize) {
                def.nBufferSize = kMinBufferSize;
            }

            err = mOMX->setParameter(
                    mNode, OMX_IndexParamPortDefinition, &def, sizeof(def));
            CHECK_EQ(err, OK);
        }
    }

    if (!strcasecmp(mMIME, MEDIA_MIMETYPE_IMAGE_JPEG)