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

Commit b6b779f7 authored by Abubakar Alkali's avatar Abubakar Alkali Committed by Automerger Merge Worker
Browse files

Merge "SoftVideoDecodeOMXComponent: validate OMX params for dynamic HDR" into...

Merge "SoftVideoDecodeOMXComponent: validate OMX params for dynamic HDR" into rvc-dev am: 00371b64

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/av/+/25545533



Change-Id: Ie6b914dc3bda45bfb4b6f825aa7e6d2e25c0c525
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents e6ca6072 00371b64
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -616,6 +616,10 @@ OMX_ERRORTYPE SoftVideoDecoderOMXComponent::getConfig(
                DescribeHDR10PlusInfoParams* outParams =
                        (DescribeHDR10PlusInfoParams *)params;

                if (!isValidOMXParam(outParams)) {
                    return OMX_ErrorBadParameter;
                }

                outParams->nParamSizeUsed = info->size();

                // If the buffer provided by the client does not have enough
@@ -694,6 +698,10 @@ OMX_ERRORTYPE SoftVideoDecoderOMXComponent::internalSetConfig(
            const DescribeHDR10PlusInfoParams* inParams =
                    (DescribeHDR10PlusInfoParams *)params;

            if (!isValidOMXParam(inParams)) {
                return OMX_ErrorBadParameter;
            }

            if (*frameConfig) {
                // This is a request to append to the current frame config set.
                // For now, we only support kDescribeHdr10PlusInfoIndex, which