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

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

MPEG4Source: fix fragmented read. am: 6b401a33

am: 96114e7c

Change-Id: I8616480a004aa44e947939db7e5b8cce1b7ec72a
parents 8d579abf 96114e7c
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -3317,7 +3317,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]);