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

Commit e786547c authored by Wei Jia's avatar Wei Jia Committed by Android (Google) Code Review
Browse files

Merge "MPEG4Source: fix fragmented read." into oc-dev

parents 75160fb4 2bdbb166
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -3914,7 +3914,8 @@ status_t MPEG4Source::parseChunk(off64_t *offset) {


                while (true) {
                while (true) {
                    if (mDataSource->readAt(*offset, hdr, 8) < 8) {
                    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_size = ntohl(hdr[0]);
                    chunk_type = ntohl(hdr[1]);
                    chunk_type = ntohl(hdr[1]);