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

Commit eba0bde6 authored by Lajos Molnar's avatar Lajos Molnar Committed by Android Git Automerger
Browse files

am 3cb57616: stagefright: use all input buffers in ACodec

* commit '3cb57616':
  stagefright: use all input buffers in ACodec
parents 3830fe4f 3cb57616
Loading
Loading
Loading
Loading
+7 −4
Original line number Diff line number Diff line
@@ -4506,11 +4506,14 @@ void ACodec::ExecutingState::resume() {

    submitOutputBuffers();

    // Post the first input buffer.
    // Post all available input buffers
    CHECK_GT(mCodec->mBuffers[kPortIndexInput].size(), 0u);
    BufferInfo *info = &mCodec->mBuffers[kPortIndexInput].editItemAt(0);

    for (size_t i = 0; i < mCodec->mBuffers[kPortIndexInput].size(); i++) {
        BufferInfo *info = &mCodec->mBuffers[kPortIndexInput].editItemAt(i);
        if (info->mStatus == BufferInfo::OWNED_BY_US) {
            postFillThisBuffer(info);
        }
    }

    mActive = true;
}