Camera: Heic: Wait for output TS before dequeuing output buffers

During testHeicExif, the codec output buffer timestamp may rarely arrive
after the first codec output tiles arrive.

Test: vendor testing
Bug: 141169323
Change-Id: Iba1c82b087533cb87a32d69f7d6908e2c925b807
gugelfrei
Michael Gonzalez 5 years ago committed by Shuzhen Wang
parent b5986a36b2
commit 5c103f2962

@ -597,7 +597,8 @@ void HeicCompositeStream::compilePendingInputLocked() {
// to look up timestamp.
int64_t bufferTime = -1;
if (mCodecOutputBufferTimestamps.empty()) {
ALOGE("%s: Failed to find buffer timestamp for codec output buffer!", __FUNCTION__);
ALOGV("%s: Failed to find buffer timestamp for codec output buffer!", __FUNCTION__);
break;
} else {
// Direct mapping between camera timestamp (in ns) and codec timestamp (in us).
bufferTime = mCodecOutputBufferTimestamps.front();

Loading…
Cancel
Save