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

Commit e86f4be5 authored by Lajos Molnar's avatar Lajos Molnar Committed by Android Git Automerger
Browse files

am 447898bc: Merge "ACodec: only check crop rect on output port" into lmp-dev

* commit '447898bc':
  ACodec: only check crop rect on output port
parents c3340b80 447898bc
Loading
Loading
Loading
Loading
+10 −2
Original line number Diff line number Diff line
@@ -3200,12 +3200,20 @@ status_t ACodec::getPortFormat(OMX_U32 portIndex, sp<AMessage> &notify) {
                                        sizeof(describeParams.sMediaImage)));
                    }

                    if (portIndex != kPortIndexOutput) {
                        // TODO: also get input crop
                        break;
                    }

                    OMX_CONFIG_RECTTYPE rect;
                    InitOMXParams(&rect);
                    rect.nPortIndex = kPortIndexOutput;
                    rect.nPortIndex = portIndex;

                    if (mOMX->getConfig(
                                mNode, OMX_IndexConfigCommonOutputCrop,
                                mNode,
                                (portIndex == kPortIndexOutput ?
                                        OMX_IndexConfigCommonOutputCrop :
                                        OMX_IndexConfigCommonInputCrop),
                                &rect, sizeof(rect)) != OK) {
                        rect.nLeft = 0;
                        rect.nTop = 0;