commit | 353e167d7f8a32970f5cd130ad99aea1c52e2499 | [log] [tgz] |
---|---|---|
author | Wonsik Kim <wonsik@google.com> | Mon Jan 07 16:31:29 2019 -0800 |
committer | Wonsik Kim <wonsik@google.com> | Mon Jan 28 12:59:57 2019 -0800 |
tree | 0eba0aae1dd2dc93f7f582ccfc7de4cdfd15a9a9 | |
parent | 00174ae636c4160df106f44e3edfc32270cf513c [diff] [blame] |
audio encoders: fix initial timestamp Use timestamp from the first non-empty work, not the very first one which may be empty with an invalid timestamp. Bug: 123428627 Test: atest CtsMediaTestCases:MediaRecorderTest Change-Id: I50f68765355b1fd3af4241adad0c6199fd7b4de8
diff --git a/media/codec2/components/aac/C2SoftAacEnc.h b/media/codec2/components/aac/C2SoftAacEnc.h index 82fb438..779365b 100644 --- a/media/codec2/components/aac/C2SoftAacEnc.h +++ b/media/codec2/components/aac/C2SoftAacEnc.h
@@ -57,6 +57,7 @@ UINT mOutBufferSize; bool mSentCodecSpecificData; + bool mInputTimeSet; size_t mInputSize; c2_cntr64_t mInputTimeUs;