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

Commit de34b121 authored by Edwin Wong's avatar Edwin Wong Committed by android-build-merger
Browse files

Fix AMediaExtractor_getSampleCryptoInfo returning iv as key. am: b2fb3c97

am: 73fb5495

Change-Id: Ia75e1b37a37ee8ad5f6e59f5a1a6323deb0bb713
parents 6c185f5d 73fb5495
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -343,9 +343,9 @@ AMediaCodecCryptoInfo *AMediaExtractor_getSampleCryptoInfo(AMediaExtractor *ex)

    const void *key;
    size_t keysize;
    if (meta->findData(kKeyCryptoIV, &type, &key, &keysize)) {
    if (meta->findData(kKeyCryptoKey, &type, &key, &keysize)) {
        if (keysize != 16) {
            // IVs must be 16 bytes in length.
            // Keys must be 16 bytes in length.
            return NULL;
        }
    }