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

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

Fix AMediaExtractor_getSampleCryptoInfo returning iv as key.

am: b2fb3c97

Change-Id: I7690889fc4ce8e4392f9fcbabdca79ac6618c0cf
parents 27884dd9 b2fb3c97
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;
        }
    }