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

Commit 1b0c3e2a authored by James Dong's avatar James Dong Committed by Android Git Automerger
Browse files

am e30d039f: am a7f5e476: Merge "Fixed a bug in the query to the supported...

am e30d039f: am a7f5e476: Merge "Fixed a bug in the query to the supported profiles and levels" into gingerbread

Merge commit 'e30d039f'

* commit 'e30d039f':
  Fixed a bug in the query to the supported profiles and levels
parents 33708a05 e30d039f
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -1054,7 +1054,7 @@ status_t OMXCodec::getVideoProfileLevel(
                mNode, OMX_IndexParamVideoProfileLevelQuerySupported,
                &param, sizeof(param));

        if (err != OK) return err;
        if (err != OK) break;

        int32_t supportedProfile = static_cast<int32_t>(param.eProfile);
        int32_t supportedLevel = static_cast<int32_t>(param.eLevel);
@@ -1062,7 +1062,10 @@ status_t OMXCodec::getVideoProfileLevel(
            supportedProfile, supportedLevel);

        if (profile == supportedProfile &&
            level == supportedLevel) {
            level <= supportedLevel) {
            // We can further check whether the level is a valid
            // value; but we will leave that to the omx encoder component
            // via OMX_SetParameter call.
            profileLevel.mProfile = profile;
            profileLevel.mLevel = level;
            return OK;