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

Commit c29dd6f4 authored by James Dong's avatar James Dong
Browse files

Fix uninitialized rect structure for retrieving rect cropping information from decoder

o This patch is from NV.

bug - 3333254

Change-Id: I02bc26af464ea0bc9ad9f2e111474e8398c67220
parent 11f8109a
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -3923,6 +3923,8 @@ void OMXCodec::initOutputFormat(const sp<MetaData> &inputFormat) {

            if (!mIsEncoder) {
                OMX_CONFIG_RECTTYPE rect;
                InitOMXParams(&rect);
                rect.nPortIndex = kPortIndexOutput;
                status_t err =
                        mOMX->getConfig(
                            mNode, OMX_IndexConfigCommonOutputCrop,