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

Commit 4f59c7e3 authored by Hangyu Kuang's avatar Hangyu Kuang
Browse files

stagefright: Print warning when configure with empty CSD string.

Change-Id: I82ed59e449419ea380b93bb798ab66e7bcac9f66
parent 30c4374e
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -2232,6 +2232,9 @@ void MediaCodec::extractCSD(const sp<AMessage> &format) {
        if (!format->findBuffer(AStringPrintf("csd-%u", i).c_str(), &csd)) {
            break;
        }
        if (csd->size() == 0) {
            ALOGW("csd-%zu size is 0", i);
        }

        mCSD.push_back(csd);
        ++i;