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

Commit 9fff216d authored by James Dong's avatar James Dong Committed by Android (Google) Code Review
Browse files

Merge "Do not getConfig on video encoder on output port"

parents 4f418073 0c9153df
Loading
Loading
Loading
Loading
+28 −26
Original line number Diff line number Diff line
@@ -3898,6 +3898,7 @@ void OMXCodec::initOutputFormat(const sp<MetaData> &inputFormat) {
            mOutputFormat->setInt32(kKeyHeight, video_def->nFrameHeight);
            mOutputFormat->setInt32(kKeyColorFormat, video_def->eColorFormat);

            if (!mIsEncoder) {
                OMX_CONFIG_RECTTYPE rect;
                status_t err =
                        mOMX->getConfig(
@@ -3925,6 +3926,7 @@ void OMXCodec::initOutputFormat(const sp<MetaData> &inputFormat) {
                            video_def->nFrameWidth - 1,
                            video_def->nFrameHeight - 1);
                }
            }

            break;
        }