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

Commit d7c6d753 authored by James Zern's avatar James Zern
Browse files

C2SoftGav1Dec: remove non-eos flush

eos is later checked and signalled in drainInternal. signalling eos on a
zero sized frame will cause subsequent frame decodes to fail until the
next keyframe.

fixes:
Codec2VideoDecHidlTest#DecodeTestEmptyBuffersInserted/software_c2_android_av1_decoder_0
after ag/12144538 (Idc713f4b10776cfb6b7fa2d75b2162c3b85d3313)

Bug: 162437379
Bug: 162321377
Bug: 162267932
Test: vts-tradefed run commandAndExit vts --include-filter VtsHalMediaC2V1_0TargetVideoDecTest
Change-Id: Ied4cd9b6ad56f3630d9779ea32d0032a5bda1a29
parent 7f1fd94d
Loading
Loading
Loading
Loading
+0 −9
Original line number Diff line number Diff line
@@ -446,15 +446,6 @@ void C2SoftGav1Dec::process(const std::unique_ptr<C2Work> &work,
      return;
    }

  } else {
    const Libgav1StatusCode status = mCodecCtx->SignalEOS();
    if (status != kLibgav1StatusOk) {
      ALOGE("Failed to flush av1 decoder. status: %d.", status);
      work->result = C2_CORRUPTED;
      work->workletsProcessed = 1u;
      mSignalledError = true;
      return;
    }
  }

  (void)outputBuffer(pool, work);