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

Commit 3aa24eb5 authored by Wei Jia's avatar Wei Jia
Browse files

MediaPlayer2: fix argument offset for ByteString.copyTo

Test: cts
Bug: 112549021
Change-Id: I0e14551bd4cd605e3fa64dbfc7dd81e6653e9210
parent ab5c506b
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -3681,7 +3681,7 @@ public final class MediaPlayer2Impl extends MediaPlayer2 {
            supportedSchemes = new UUID[supportedDRMsCount];
            supportedSchemes = new UUID[supportedDRMsCount];
            for (int i = 0; i < supportedDRMsCount; i++) {
            for (int i = 0; i < supportedDRMsCount; i++) {
                byte[] uuid = new byte[16];
                byte[] uuid = new byte[16];
                in.next().getBytesValue().copyTo(uuid, uuid.length);
                in.next().getBytesValue().copyTo(uuid, 0);


                supportedSchemes[i] = bytesToUUID(uuid);
                supportedSchemes[i] = bytesToUUID(uuid);