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

Commit 2a6557f4 authored by Lajos Molnar's avatar Lajos Molnar Committed by Android (Google) Code Review
Browse files

Merge "Merge changes I54a7af62,I98364ee9,I394e3e65 am: bb155b3a" into sc-dev

parents 6a7bbeed a8236b47
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -651,8 +651,14 @@ bool C2SoftGav1Dec::outputBuffer(const std::shared_ptr<C2BlockPool> &pool,
    }
  }

  CHECK(buffer->image_format == libgav1::kImageFormatYuv420 ||
        buffer->image_format == libgav1::kImageFormatMonochrome400);
  if (!(buffer->image_format == libgav1::kImageFormatYuv420 ||
        buffer->image_format == libgav1::kImageFormatMonochrome400)) {
    ALOGE("image_format %d not supported", buffer->image_format);
    mSignalledError = true;
    work->workletsProcessed = 1u;
    work->result = C2_CORRUPTED;
    return false;
  }
  const bool isMonochrome =
      buffer->image_format == libgav1::kImageFormatMonochrome400;