SpsColorGuard.kt contains bounded SPS prefix traversal adapted from androidx.media3.container.NalUnitUtil, pinned release 1.11.1. Copyright (C) 2016 The Android Open Source Project. Licensed under the Apache License, Version 2.0. https://www.apache.org/licenses/LICENSE-2.0 Source: https://github.com/androidx/media/blob/1.11.1/libraries/container/src/main/java/androidx/media3/container/NalUnitUtil.java The adaptation retains raw color primaries, transfer, and matrix codes and adds strict bounds; it does not replace Media3's geometry/precision parser. The AAC-LC-only ADTS writer is a separate clean implementation of header fields; no FFmpeg or LGPL source was copied.