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

Commit 9e2e53d5 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "C2SoftHevcDec: Initialize mStride after first header decode"

parents e7b08e2b 6b6b1889
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;