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
diff --git a/media/libstagefright/ACodec.cpp b/media/libstagefright/ACodec.cpp
index 45c7fb9..8f4b71c 100644
--- a/media/libstagefright/ACodec.cpp
+++ b/media/libstagefright/ACodec.cpp
@@ -1247,6 +1247,7 @@
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