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

Commit 0512881b authored by Leena Winterrowd's avatar Leena Winterrowd Committed by Android Git Automerger
Browse files

am 9aff25fb: stagefright: httplive: Reduce memcpy calls for chunked content

* commit '9aff25fb':
  stagefright: httplive: Reduce memcpy calls for chunked content
parents 59d1d010 9aff25fb
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -873,7 +873,11 @@ ssize_t LiveSession::fetchFile(
        // Only resize when we don't know the size.
        size_t bufferRemaining = buffer->capacity() - buffer->size();
        if (bufferRemaining == 0 && getSizeErr != OK) {
            bufferRemaining = 32768;
            size_t bufferIncrement = buffer->size() / 2;
            if (bufferIncrement < 32768) {
                bufferIncrement = 32768;
            }
            bufferRemaining = bufferIncrement;

            ALOGV("increasing download buffer to %zu bytes",
                 buffer->size() + bufferRemaining);