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

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

Merge "MPEG4Source: fix fragmented read."

parents a471fa02 ba9af779
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -3914,7 +3914,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]);