mirror of
https://github.com/TheFunny/TelegramTwitterMediaBot.git
synced 2026-09-26 23:52:05 +00:00
decode_budget_bytes mirrored the within-limits early return and the MAX_DECODE_BYTES guard that prepare_png and prepare_jpeg each spelled out inline (three copies of the same arithmetic, which the reservation and the branches had to keep in sync by hand). PhotoPlan/plan_photo now hold that decision once and all three call it; the log order and the exact bounds are unchanged. decode_budget_follows_the_processing_decision still pins the reservation against the branches.