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

Commit 218692ec authored by Wei Jia's avatar Wei Jia Committed by android-build-merger
Browse files

MPEG4Source: fix fragmented read. am: 6b401a33 am: 96114e7c am: bbc5c8fc

am: 067ab2f7

Change-Id: Id86327d63b5b8aa3edc62b7e6c15689b6ef4afa7
parents 1e3070e5 067ab2f7
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -3530,7 +3530,8 @@ status_t MPEG4Source::parseChunk(off64_t *offset) {

                while (true) {
                    if (mDataSource->readAt(*offset, hdr, 8) < 8) {
                        return ERROR_END_OF_STREAM;
                        // no more box to the end of file.
                        break;
                    }
                    chunk_size = ntohl(hdr[0]);
                    chunk_type = ntohl(hdr[1]);