[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 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: I64541c0db907f5c09dc41906e20c4c3c41d7171a