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

Commit 55fddda7 authored by James Dong's avatar James Dong Committed by Android Git Automerger
Browse files

am 41ced0ad: am 49fcd3cc: Fix an error caused by sample size value by order

* commit '41ced0ad':
  Fix an error caused by sample size value by order
parents 6d80297a 41ced0ad
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -2811,8 +2811,8 @@ void MPEG4Writer::Track::writeStszBox() {
    mOwner->beginBox("stsz");
    mOwner->writeInt32(0);  // version=0, flags=0
    if (mSamplesHaveSameSize) {
        List<uint32_t *>::iterator it = mSampleSizes.begin();
        mOwner->writeInt32((*it)[0]);  // default sample size
        CHECK(mCurrentSampleSizeArr != 0);
        mOwner->write(mCurrentSampleSizeArr, 4, 1);  // default sample size
    } else {
        mOwner->writeInt32(0);
    }