codec2: Avoid sending input done event for incomplete work
- In cases where single input buffer can produce multiple outputs, any work done event triggers input done event in surface mode and does not wait for input buffer done event from component. This can make producer to overwrite graphic buffer that is still being processesed by codec leading to corruption in output. - Added check to not send input done event to surface if output buffer flag is set to FLAG_INCOMPLETE Bug: 174725323 Test: cts/media/device-small Change-Id: I1164bf5c61e3fce346e51a57620ee68914a517ec
Loading
Please register or sign in to comment