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
Loading
Please register or sign in to comment