The 512 MiB limit is effectcraft_project::PCRAFT_MAX_INPUT. The engine re-exports it and the media reader's limit is defined from it, so the two reads cannot drift apart. Both reads compute their take() limit with saturating_add.