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

Commit 2df7cd65 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

Change-Id: I4266df6693d6f6e261e5959f8006f658be57d656
parents 995ffd91 b31373e6
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -3707,7 +3707,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]);