Skip to content
Snippets Groups Projects
Commit cce59b2c authored by Arun Johnson's avatar Arun Johnson
Browse files

Reset mBufferInfos for setBufferInfo(s)

Since any of the setBufferInfo(s) can be converted
to BufferInfos in getBufferInfos, a reset is required
for mBufferInfos for every setBufferInfo(s)

Bug: 325512893
Test: atest android.mediav2.cts.CodecDecoderBlockModelMultiAccessUnitTest

Change-Id: Ibf28ad0983985bfb93f3bffe426677729430d06a
parent bc05bdbb
No related branches found
No related tags found
No related merge requests found
......@@ -4748,6 +4748,9 @@ final public class MediaCodec {
}
void setBufferInfo(MediaCodec.BufferInfo info) {
// since any of setBufferInfo(s) should translate to getBufferInfos,
// mBufferInfos needs to be reset for every setBufferInfo(s)
mBufferInfos.clear();
mPresentationTimeUs = info.presentationTimeUs;
mFlags = info.flags;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment