[automerger skipped] spdif: fix possible buffer overflow am: 762fbb3e09 -s ours am: 075b93f931 -s ours am: b941c1e8ff -s ours am: a61e2b8125 -s ours am: 182132e141 -s ours am: f34124922f -s ours

am skip reason: Change-Id Ifc7f8c8946388e19f39f35d649a5936568f8b9b2 with SHA-1 b2fe1bc25c is in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/system/media/+/12638669

Change-Id: Ie60157767098977e872f5f0792f5054f5035a6be