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

Commit cdd7e744 authored by Hangyu Kuang's avatar Hangyu Kuang Committed by Android (Google) Code Review
Browse files

Merge "stagefright: Print warning when configure with empty CSD string."

parents a485208f 4f59c7e3
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line 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)) {
        if (!format->findBuffer(AStringPrintf("csd-%u", i).c_str(), &csd)) {
            break;
            break;
        }
        }
        if (csd->size() == 0) {
            ALOGW("csd-%zu size is 0", i);
        }


        mCSD.push_back(csd);
        mCSD.push_back(csd);
        ++i;
        ++i;