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

Commit 8ead39dd authored by Wonsik Kim's avatar Wonsik Kim
Browse files

aac: set initial timestamp to zero

Bug: 127405861
Test: bug repro steps
Change-Id: Id080eeb2345c19651329da3a6b7d7928a9aa3463
parent 53c7ddc8
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -153,7 +153,7 @@ C2SoftAacEnc::C2SoftAacEnc(
      mSentCodecSpecificData(false),
      mInputTimeSet(false),
      mInputSize(0),
      mInputTimeUs(-1ll),
      mInputTimeUs(0),
      mSignalledError(false),
      mOutIndex(0u) {
}
@@ -179,7 +179,7 @@ c2_status_t C2SoftAacEnc::onStop() {
    mSentCodecSpecificData = false;
    mInputTimeSet = false;
    mInputSize = 0u;
    mInputTimeUs = -1ll;
    mInputTimeUs = 0;
    mSignalledError = false;
    return C2_OK;
}
@@ -197,6 +197,7 @@ c2_status_t C2SoftAacEnc::onFlush_sm() {
    mSentCodecSpecificData = false;
    mInputTimeSet = false;
    mInputSize = 0u;
    mInputTimeUs = 0;
    return C2_OK;
}

@@ -558,6 +559,7 @@ c2_status_t C2SoftAacEnc::drain(
    mSentCodecSpecificData = false;
    mInputTimeSet = false;
    mInputSize = 0u;
    mInputTimeUs = 0;

    // TODO: we don't have any pending work at this time to drain.
    return C2_OK;