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

Commit 00dfe843 authored by Leena Winterrowd's avatar Leena Winterrowd Committed by Android Git Automerger
Browse files

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

* commit '0512881b':
  stagefright: httplive: Reduce memcpy calls for chunked content
parents 46246e5b 0512881b
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -872,7 +872,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);