mp3dec: Check if input buffer contains valid data

At the start of decode call, search of SYNC word and ensure that
header is valid and input buffer contains sufficient number of bytes
in the input.

Bug: 276896088
Bug: 276897197
Bug: 276898070
Bug: 276898118
Test: poc in bugs
Test: atest Mp3DecoderTest
(cherry picked from https://partner-android-review.googlesource.com/q/commit:b1728f4e0358424f447897003dd5ef599a149c14)
Merged-In: I686a6cc5456ca4d7bf2d4c5f3fd7e300c8c3a145
Change-Id: I686a6cc5456ca4d7bf2d4c5f3fd7e300c8c3a145
1 file changed