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

Commit 80c9017b authored by Vinay Kalia's avatar Vinay Kalia Committed by Automerger Merge Worker
Browse files

CCodecBuffers: Update KEY_WIDTH and KEY_HEIGHT to correct values am: ef5fc71f

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

Change-Id: I7acf72e9185042c2b20eac58ff9fe01b19a3c878
parents e5ed9212 ef5fc71f
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -96,7 +96,10 @@ void CCodecBuffers::handleImageData(const sp<Codec2Buffer> &buffer) {
        if (img->mNumPlanes > 0 && img->mType != img->MEDIA_IMAGE_TYPE_UNKNOWN) {
            int32_t stride = img->mPlane[0].mRowInc;
            mFormatWithImageData->setInt32(KEY_STRIDE, stride);
            ALOGD("[%s] updating stride = %d", mName, stride);
            mFormatWithImageData->setInt32(KEY_WIDTH, img->mWidth);
            mFormatWithImageData->setInt32(KEY_HEIGHT, img->mHeight);
            ALOGD("[%s] updating stride = %d, width: %d, height: %d",
                  mName, stride, img->mWidth, img->mHeight);
            if (img->mNumPlanes > 1 && stride > 0) {
                int64_t offsetDelta =
                    (int64_t)img->mPlane[1].mOffset - (int64_t)img->mPlane[0].mOffset;