aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBo Hu <bohu@google.com>2022-07-11 22:00:32 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2022-07-11 22:00:32 +0000
commit43df99cbc940c853840106ab62477d0e514ab509 (patch)
tree2f949621f7387b981ad1bac7c5f84a7e9e570cfc
parent07d7162007505bbfcbd1c0c8c6b0ac6aacc427ac (diff)
parent5dbb9b3eaba314a01763860522846ec43815333f (diff)
downloadgoldfish-opengl-43df99cbc940c853840106ab62477d0e514ab509.tar.gz
codecs: hevc only needs csd0 am: 5dbb9b3eab
Original change: https://googleplex-android-review.googlesource.com/c/device/generic/goldfish-opengl/+/19236369 Change-Id: I153993ccef5cf0d6c89ba9724d002340b6603d3f Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-rw-r--r--system/codecs/c2/decoders/hevcdec/C2GoldfishHevcDec.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/system/codecs/c2/decoders/hevcdec/C2GoldfishHevcDec.cpp b/system/codecs/c2/decoders/hevcdec/C2GoldfishHevcDec.cpp
index 7008bd5d..7914c29b 100644
--- a/system/codecs/c2/decoders/hevcdec/C2GoldfishHevcDec.cpp
+++ b/system/codecs/c2/decoders/hevcdec/C2GoldfishHevcDec.cpp
@@ -404,10 +404,11 @@ void C2GoldfishHevcDec::onRelease() {
}
void C2GoldfishHevcDec::decodeHeaderAfterFlush() {
- if (mContext && !mCsd0.empty() && !mCsd1.empty()) {
+ DDD("calling %s", __func__);
+ if (mContext && !mCsd0.empty()) {
mContext->decodeFrame(&(mCsd0[0]), mCsd0.size(), 0);
- mContext->decodeFrame(&(mCsd1[0]), mCsd1.size(), 0);
- DDD("resending csd0 and csd1");
+ DDD("resending csd0");
+ DDD("calling %s success", __func__);
}
}
@@ -874,9 +875,6 @@ void C2GoldfishHevcDec::process(const std::unique_ptr<C2Work> &work,
if (mCsd0.empty()) {
mCsd0.assign(mInPBuffer, mInPBuffer + mInPBufferSize);
DDD("assign to csd0 with %d bytpes", mInPBufferSize);
- } else if (mCsd1.empty()) {
- mCsd1.assign(mInPBuffer, mInPBuffer + mInPBufferSize);
- DDD("assign to csd1 with %d bytpes", mInPBufferSize);
}
// this is not really a valid pts from config
removePts(mPts);