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

Commit 0a73d2cb authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "C2SoftFlacEnc: Avoid mapping C2LinearBlock twice"

parents 72fedd60 3d780919
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -262,9 +262,10 @@ void C2SoftFlacEnc::process(
        work->result = C2_NO_MEMORY;
        return;
    }
    C2WriteView wView = mOutputBlock->map().get();
    if (wView.error()) {
        ALOGE("write view map failed %d", wView.error());

    err = mOutputBlock->map().get().error();
    if (err) {
        ALOGE("write view map failed %d", err);
        work->result = C2_CORRUPTED;
        return;
    }