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

Commit d08a068b authored by Hangyu Kuang's avatar Hangyu Kuang
Browse files

stagefright: Fix a bug in getting intra refresh period through getConfig.

When intra refresh mode is disable, getConfig should return '0' instead of
default intra refresh period.

Bug:26587630
Change-Id: I16d9f20d74b405f60be6bda18abd103d99a3ab28
parent ee4804a7
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1062,7 +1062,8 @@ OMX_ERRORTYPE SoftAVC::getConfig(
                return OMX_ErrorUndefined;
            }

            intraRefreshParams->nRefreshPeriod = mAIRRefreshPeriod;
            intraRefreshParams->nRefreshPeriod =
                    (mAIRMode == IVE_AIR_MODE_NONE) ? 0 : mAIRRefreshPeriod;
            return OMX_ErrorNone;
        }