SimpleDecodingSource:Prevent OOB write in heap mem am: f3590a1b18 am: b240660c2e am: 247199f370 am: e3f218d634 am: 2708f51a28 am: efc5d1676f am: ec6411dfde

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/av/+/16187628

Change-Id: I55e6042801c7635679c9690d39d093d450214ce0