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

Commit 7b38b436 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Reset mBufferInfos for setBufferInfo(s)" into main

parents e8ab42c7 cce59b2c
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -4759,6 +4759,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;
        }