avio: Document that write_packet() is not allowed to change its input