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

Commit a67e16c4 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 am: b6b779f7 am: bbe67764 am: 4bcc7008 am: 10ccff24 am: 7d91bc54

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



Change-Id: Ifdc2a9cae1d715f9a6955b3b7296f8f5f1d2e30b
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents bf772136 7d91bc54
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