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

Commit 0db0cf02 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

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

Change-Id: I1822296cdd9622d747053dfe94d13b72eff50b02
parents b5669872 eb98d945
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));
    }