mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00

Previously, writeAllocationNode was not advanced to the terminating node when finishing writing sample data that fills exactly up to the end of the current write node. This wasn't actually broken, but is confusing because it causes edge cases where the start/read references could temporarily refer the node after the current write node. This change advances the write reference in this case, removing this confusion and bringing the implementation in line with what the design doc says happens. Also making some simplification and consistency changes. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=159099522