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

Commit e851b9bd authored by Dichen Zhang's avatar Dichen Zhang Committed by Wonsik Kim
Browse files

media: initialize dequeue counter in buffer info

Uninitialized dequeue counter in buffer info may contain
garbage value, which potentially results in unexpected
behavior while accessing, hence initialize it.

Author: Malathi Gottam<mgottam@codeaurora.org>

Bug: 70919418
Test: TBD
Change-Id: I59aaa30f060f6b3514647a159db6eb73535df86d
parent 0d8553c9
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1247,6 +1247,7 @@ status_t ACodec::allocateOutputBuffersFromNativeWindow() {
        info.mRenderInfo = NULL;
        info.mGraphicBuffer = graphicBuffer;
        info.mNewGraphicBuffer = false;
        info.mDequeuedAt = mDequeueCounter;

        // TODO: We shouln't need to create MediaCodecBuffer. In metadata mode
        //       OMX doesn't use the shared memory buffer, but some code still