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

Commit 739585fb 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...

MPEG4Source: fix fragmented read. am: 6b401a33 am: 96114e7c am: bbc5c8fc am: 067ab2f7 am: 218692ec am: fa7be9da am: b31373e6 am: 2df7cd65
am: 64e7c608

Change-Id: I08e269ad2cc21c8411d79b8ca4901aa1c9cce580
parents e7aba4ca 64e7c608
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -3801,7 +3801,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]);