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

Commit 77f3b24a authored by Wonsik Kim's avatar Wonsik Kim Committed by Automerger Merge Worker
Browse files

Merge "force g711 test to match 1-channel sample data" am: eb98d945 am: 0db0cf02

Original change: https://android-review.googlesource.com/c/platform/frameworks/av/+/1851105

Change-Id: I731534913cde9257a4f050b611ab245b491e201e
parents ee7d6941 0db0cf02
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -465,6 +465,11 @@ TEST_P(Codec2AudioDecDecodeTest, DecodeTest) {
    if (mMime.find("raw") != std::string::npos) {
        bitStreamInfo[0] = 8000;
        bitStreamInfo[1] = 1;
    } else if ((mMime.find("g711-alaw") != std::string::npos) ||
               (mMime.find("g711-mlaw") != std::string::npos)) {
        // g711 test data is all 1-channel and has no embedded config info.
        bitStreamInfo[0] = 8000;
        bitStreamInfo[1] = 1;
    } else {
        ASSERT_NO_FATAL_FAILURE(getInputChannelInfo(mComponent, mMime, bitStreamInfo));
    }