commit | 8fef2499404855fa9f97d56721e7046e423c8baf | [log] [tgz] |
---|---|---|
author | Harish Mahendrakar <harish.mahendrakar@ittiam.com> | Fri Dec 15 17:18:36 2023 +0000 |
committer | Cherrypicker Worker <android-build-cherrypicker-worker@google.com> | Fri Dec 15 17:18:36 2023 +0000 |
tree | 752810e66f854ced8628f2c56e8f495c3f7aa1a0 | |
parent | 684f4ed4fba55e3d82cd07858f30c6ae4dd8f2c1 [diff] |
mp3dec: Update input buffer validation checks to handle EOS case In case of EOS, application may call pvmp3_framedecoder() with a zero length buffer and in such cases pvmp3_framedecoder() is expected return NO_ENOUGH_MAIN_DATA_ERROR. Earlier CL that added checks to validate the input buffer, was wrongly returning SYNCH_LOST_ERROR for zero length cases. This is now addressed by updating the error code appropriately. Bug: 315387969 Test: atest VtsHalMediaOmxV1_0TargetAudioDecTest (cherry picked from https://partner-android-review.googlesource.com/q/commit:3aba4cda18971c011b3ce27778e4d056688c42ad) Merged-In: I48038143dd7c797d7a95a8e90ce56c8e659fb51d Change-Id: I48038143dd7c797d7a95a8e90ce56c8e659fb51d