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

Commit 8a55bcb6 authored by Marco Nelissen's avatar Marco Nelissen
Browse files

resolved conflicts for merge of ced2dd3c to lmp-dev

Change-Id: I5dbb4f7d6c38c75a54c59d5e59305657bc50ab10
parents 2562495d ced2dd3c
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -25,6 +25,13 @@
namespace android {

SkipCutBuffer::SkipCutBuffer(int32_t skip, int32_t cut) {

    if (skip < 0 || cut < 0 || cut > 64 * 1024) {
        ALOGW("out of range skip/cut: %d/%d, using passthrough instead", skip, cut);
        skip = 0;
        cut = 0;
    }

    mFrontPadding = mSkip = skip;
    mBackPadding = cut;
    mWriteHead = 0;