[automerge] Fix Out of Bounds Read in AAVCAssembler 2p: 3066b1410d

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

Bug: 230630526
Change-Id: I3db7132d0813fb78713556ce60356514c06bc88d
Merged-In: Ia9d0b172d0d09e3bf80a3b4bfc5d1125ac00264d