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

Commit 1ad67d63 authored by Harish Mahendrakar's avatar Harish Mahendrakar Committed by Presubmit Automerger Backend
Browse files

[automerge] C2SoftHevcDec: Initialize mStride after first header decode 2p: c307d4d4

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

Bug: 238984399
Change-Id: I191749e02930b9ce88911ca852d0565bb9edd3bd
Merged-In: I06886cc718a1b8b9fa247b248b23adb2feb80f90
parents 9aef0df6 c307d4d4
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -917,7 +917,8 @@ void C2SoftHevcDec::process(
        if (0 < ps_decode_op->u4_pic_wd && 0 < ps_decode_op->u4_pic_ht) {
            if (mHeaderDecoded == false) {
                mHeaderDecoded = true;
                setParams(ALIGN128(ps_decode_op->u4_pic_wd), IVD_DECODE_FRAME);
                mStride = ALIGN128(ps_decode_op->u4_pic_wd);
                setParams(mStride, IVD_DECODE_FRAME);
            }
            if (ps_decode_op->u4_pic_wd != mWidth ||  ps_decode_op->u4_pic_ht != mHeight) {
                mWidth = ps_decode_op->u4_pic_wd;