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

Skip to content
Commit 4f4e19bb authored by Yanqiang Fan's avatar Yanqiang Fan Committed by MugaChi
Browse files

fix send null static meta to VENC when HDR Editing

The data flow is VDEC->GPU->VENC when HDR Editing, as excepted,
after passing through GPU, the static meta will be discarded.
But VENC received NULL static meta.

we have found a bug in the file Codec2Buffer.cpp.
Within the function GetHdrMetaDataFromGralloc4Handle, if
smpte2086 is false, the err should be set to C2_CORRUPTED.
So the static info reset will be called to avoid send null
static meta to VENC. This is how it's done in Android 14.

Bug:
Test: video record and HDR editing test.

Change-Id: I9734fae0ef739b443f9c1b932900318600a32169
parent 41829023
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment