Merge "SimpleDecodingSource:Prevent OOB write in heap mem" into sc-qpr1-dev am: 381c54bfe3

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

Change-Id: Ibf80c1d1df957f2d9cacb011b3ac60049ce20fe1