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

Commit dc918f74 authored by Lajos Molnar's avatar Lajos Molnar Committed by The Android Automerger
Browse files

stagefright: fix PPS packaging into AVCC

Bug: 28943869
Change-Id: Iefe9ef3ec4ec4fe31cd5b0e90f1796130f8e9302
parent ae92d095
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1114,7 +1114,7 @@ static size_t reassembleAVCC(const sp<ABuffer> &csd0, const sp<ABuffer> csd1, ch
    int numpicparamsoffset = avccidx;
    avccidx++;
    do {
        i = findNextNalStartCode(csd0->data() + i, csd0->size() - i) - csd0->data();
        i = findNextNalStartCode(csd1->data() + i, csd1->size() - i) - csd1->data();
        ALOGV("block at %zu, last was %d", i, lastparamoffset);
        if (lastparamoffset > 0) {
            int size = i - lastparamoffset;